bfg-repo-cleaner icon indicating copy to clipboard operation
bfg-repo-cleaner copied to clipboard

git push has still the same size.

Open rajeshisnepali opened this issue 4 years ago • 1 comments

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).

rajeshisnepali avatar Jan 19 '21 04:01 rajeshisnepali

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

bdejean avatar Oct 03 '21 13:10 bdejean