After deleting a binary file from Git history why is my repository still large?


Staff member
So let me preface this question by saying that I am aware of the previous questions pertaining to subject on Stackoverflow. In fact I've tried all the solutions I could find but there is a binary file in my repo that just refuses to be removed and continues to greatly inflate my repo size.

Methods I've tried,

<li><a href="" rel="noreferrer">David Underhill's script</a></li>
<li><a href="" rel="noreferrer">Github's Howto</a></li>

Both of which were recommend by the Darhuuk's answer to <a href="">Remove files from git repo completely</a>

However, after trying both of those solutions the <a href="" rel="noreferrer">script to find large files in git</a> still finds the offending binary. However the script from <a href="">this answer</a> no longer finds the commit for the binary. Both of these scripts were suggest by <a href="">this answer</a>.

The repo is still 44mb after the attempts at removal, which is way too large for the relative small size of the source. Which suggestions the large file script is doing it's job properly. I've tried pushing up to github (I made a fork just in case) and then doing a fresh clone to see if the repo size was decreased, but it is still the same size.

Can someone explain what I am doing wrong or suggest an alternative method?

I should note that I am not just interested in trimming the file from my local repo, I also want to be able to fix the remote repo on Github.