When cleaning the repo with BFG (https://rtyley.github.io/bfg-repo-cleaner/) ,encountered the following :
Protected commits
-----------------
These are your pr
This is a very late reply, but I hit a similar problem.
Were you trying to remove a file from a git repo and its history? Were you in a hurry and failed to notice that file is present in the state of the most recent commit, which BFG by default treats as protected? This was an error that happened between my keyboard and chair today.
If you want to clean a repo: (1) remove the unwanted file with the usual git commands e.g., git rm file; git commit
, (2) test that everything still works without that file, (3) use bfg to rewrite the repo history without that file.