Reputation: 24741
remote: error: GH001: Large files detected. You may want to try Git Large File Storage
I deleted the file. Below, you can see me trying to push, then trying to remove the file from the cache.
How do I get rid of this large file so I can push again?
Upvotes: 1
Views: 3971
Reputation: 1441
One good solution that worked for me:
git filter-branch --tree-filter 'rm path/to/your/bigfile' HEAD
and then:
git push origin master --force
Upvotes: 0
Reputation: 164919
The file must not just be deleted, it must be removed from history. This is the same procedure you'd follow to remote a sensitive file, such as a password file.
There's a number of ways to do this, the simplest is to follow the instructions on Github. They show two ways to scrub the file from all commits it is present in.
Upvotes: 2
Reputation: 24741
I ended up doing a work around.
cp . ../backup
rm -R ..backup/.git
git reset --hard c14809fa
cp ../backup .
Then just go ahead and commit and push.
Upvotes: 4