When the git team collaborates on development, how do you know that someone has used the git reset rollback command? How to restore the version back?
淡淡烟草味
淡淡烟草味 2017-05-02 09:46:20
0
2
655

During team development, someone used the command git reset to roll back the command. Without telling other developers... How can other developers know that someone used git reset at this time?

git reflog displays the commits of the entire local repository.

So this command does not work in other developers’ local repositories....

淡淡烟草味
淡淡烟草味

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