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

Protecting non-master branch? #474

Open dmaul09 opened 1 year ago

dmaul09 commented 1 year ago

Our code is not on the 'master' branch. Your default protection of latest commits is apparently only on the 'master' branch. How can I make it protect commits on the branch(es) where we actually work? (Working on a bare clone). P.S. Love this tool!

dmaul09 commented 1 year ago

I may have figured this out -- I suppose I should use git clone --mirror --branch develop , and then BFG would protect the most recent commit of the develop branch. (I didn't realize you could specify a branch with a mirror clone.)