[Development] Please warn of force pushes...

Simon Hausmann simon.hausmann at digia.com
Tue May 14 09:26:51 CEST 2013


On Tuesday 14. May 2013 05.48.57 Qi Liang wrote:
> +1 for this.
> 
> I met with this non-fast-forward case today. Sometimes, when people are
> mirroring a git repo, and "git push --mirror" doesn't work well for some
> reason. Then "git push --all" is a second choice, and this non-fast-forward
> will break "git push --all". Better to warn of those force pushes. And even
> better to not do it in the main repo, like qt, qt5/*.

Perhaps you are missing a --force?

--mirror is only about the naming of the branches to push, not about how to 
deal with ancestry changes in the history. So maybe --mirror --force is what 
you're looking for? (I haven't tested this!)


Simon



More information about the Development mailing list