同事必须使用强制更新选项(在 GIT Zend Studio 插件中)——否则我们不会收到他推送的提交。
我认为这对应于git push -- force
对我来说看起来很危险:
--force
Usually, the command refuses to update a remote ref that is not an ancestor of the local
ref used to overwrite it. This flag disables the check. This can cause the remote
repository to lose commits; use it with care.
什么配置需要改?