git团队协作开发时,如何得知有人使用了git reset 回退命令?如何再把版本还原回来?
淡淡烟草味
淡淡烟草味 2017-05-02 09:46:20
0
2
628

团队开发时, 有人使用了命令 git reset 回退命令. 而没有告诉其他开发人员... 这时候其他人员怎么才 能知道有人用了git reset ?

git reflog 显示整个本地仓储的commit.

所以这个命令在其他开发人员的本地仓库里不管用....

淡淡烟草味
淡淡烟草味

reply all(2)
洪涛

给他配备一个高音喇叭

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template