search

Home  >  Q&A  >  body text

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?

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....

淡淡烟草味淡淡烟草味2821 days ago677

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:48:20

    给他配备一个高音喇叭

    If you follow the relatively complete gitflow, there should not and will not be a situation where you need to inform others about reset.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:48:20

    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

    reply
    0
  • Cancelreply