Undoing a git pull --rebase

后端 未结 4 1059
面向向阳花
面向向阳花 2021-01-30 09:00

Hey I\'m new to git and I need to undo a pull, can anyone help?!? So what I\'ve done is...

  1. git commit
  2. git stash
  3. git pull --rebase
  4. git st
4条回答
  •  迷失自我
    2021-01-30 09:08

    Use git log -g and find the commit index you want to go back to, the just do git checkout index

提交回复
热议问题