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

[Q] Is `--mirror` necessary? #442

Open NightMachinery opened 2 years ago

NightMachinery commented 2 years ago

I have run bfg on my normal repos (not bare repos), and it seems to work just fine. Why is --mirror emphasized in the docs? Are there any hidden gotchas I am missing?

LukerSpringtree commented 2 years ago

yes it is necessary

if you are not in a mirror repo. you will push many refs to remote repo;

it will not usefull;

ChaseMillers commented 1 year ago

When I go to push after a mirror, I get merge-request errors on push: ! [remote rejected] refs/merge-requests/1/head -> refs/merge-requests/1/head (deny updating a hidden ref) ! [remote rejected] refs/merge-requests/1/merge -> refs/merge-requests/1/merge (deny updating a hidden ref) ! [remote rejected] refs/merge-requests/2/head -> refs/merge-requests/2/head (deny updating a hidden ref) ! [remote rejected] refs/merge-requests/2/merge -> refs/merge-requests/2/merge (deny updating a hidden ref)