0

I accidentally committed and pushed some binary files to origin/master. I figured out my mistake and git rm -f MASSIVE.FILES and commit/push ed again. Now, for cloning a 5KB project, it needs to download few hundred mega bytes because those deleted files are still in history.

The question is, how can I remove those massive files completely from history (.git)?

I already tried this answer, this one and this but none of them helped me.

IAmAliYousefi
  • 1,132
  • 3
  • 21
  • 33
  • In what way existing answers don't help? – phd Sep 16 '17 at 07:24
  • @phd It still downloads all files including those `git rm -f`ed file and put them in .git directory. So download size is the same although massive files are removed completely. – IAmAliYousefi Sep 16 '17 at 07:27
  • The accepted answer in the first link talks about `git filter-branch`. It should help in your case. – ElpieKay Sep 16 '17 at 07:36

0 Answers0