团队开发时, 有人使用了命令 git reset 回退命令. 而没有告诉其他开发人员... 这时候其他人员怎么才 能知道有人用了git reset ?
git reflog 显示整个本地仓储的commit.
所以这个命令在其他开发人员的本地仓库里不管用....
给他配备一个高音喇叭
If you follow the relatively complete gitflow, there should not and will not be a situation where you need to inform others about reset.
Put a pre-push hook on the git server, it will buzz when it is not fast-forward, and send an email to the entire group
Or disable force push on the server
给他配备一个高音喇叭
If you follow the relatively complete gitflow, there should not and will not be a situation where you need to inform others about reset.
Put a pre-push hook on the git server, it will buzz when it is not fast-forward, and send an email to the entire group
Or disable force push on the server