Open rajeshisnepali opened 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.
git rm -r --cached node_modules
I ran
bfg --delete-folders node_modules myrepo.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
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).
.git/objects
@rajeshisnepali try git repack -ad https://github.com/rtyley/bfg-repo-cleaner/issues/448
git repack -ad
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
bfg --delete-folders node_modules myrepo.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
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).