How to undo a git pull?

前端 未结 6 796
灰色年华
灰色年华 2020-11-30 16:14

I would like to undo my git pull on account of unwanted commits on the remote origin, but I don\'t know to which revision I have to reset back to.

How can I just go

6条回答
  •  执笔经年
    2020-11-30 16:43

    Find the for the commit you want to go. You can find it in github or by typing git log or git reflog show at the command line and then do git reset --hard

提交回复
热议问题