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.86k stars 535 forks source link

Branches deleted #358

Closed adamski closed 4 years ago

adamski commented 4 years ago

I ran the tool on a mirror of my repo, to delete instances of a given filename. All looked good from inspecting the affected and new commits. I then ran (as per instructions)

git reflog expire --expire=now --all && git gc --prune=now --aggressive

and pushed to my git server with git push origin master (out of habit..) I then saw that all branches apart from master are gone!

Did I do something wrong?

Luckily I still have the original repo state on my hard drive...

javabrett commented 4 years ago

Unclear what might have happened. Restore from your good backup?

adamski commented 4 years ago

I think the git push origin master may have caused it. Anyhow, I did restore, and tried again and it worked beautifully. Thanks for this tool!