rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.84k stars 535 forks source link

git push has still the same size. #418

Open rajeshisnepali opened 3 years ago

rajeshisnepali commented 3 years ago

Our co-worker accidentally pushed "node_modules" in the repo. However later, I deleted (git rm -r --cached node_modules) and ignored the file but there was no change in the gitlab storage maybe because of the history.

I ran

  1. bfg --delete-folders node_modules myrepo.git
  2. git reflog expire --expire=now --all && git gc --prune=now --aggressive
  3. git push

But no change in gitlab.com (still the same storage size). Only the changes, I found were in my local .git/objects folder (decreased size).

bdejean commented 2 years ago

@rajeshisnepali try git repack -ad https://github.com/rtyley/bfg-repo-cleaner/issues/448