Safe master-master setup with git? (writable git mirror)
问题 Have set up a master git repo and a mirror of it. After some experiments I detected a typical conflict resolution (mis)managment: without a warning, git just dropped conflicting commits -- a pretty much insane default setting. After some perusing of SO, I tried git config receive.denyNonFastForwards 1 git config receive.denyDeletes 1 but that does not solve the lost commit issue. When there are two conflicting commits in the master and in the mirror repo, git remote update git push --mirror