How to make sure teammates don't screw up the git repo by rewriting history?
问题 Common advice seems to be not to rebase, reset, or perform other "history-rewriting" operations after commits have been pushed. The recommendation is to perform all these kinds of slicing and dicing on your own machine, but then once you've pushed it, to just let it be. This makes sense. But how can this policy be enforced? With multiple developers, how can we make sure that nobody does this? It seems there should be a way for git to programmatically know if it is rewriting history on