search

Home  >  Q&A  >  body text

Urgent! Urgent! How to undo git pull misoperation?

Urgent! How to undo git pull misoperation? Accidentally git pulled. . . . .

过去多啦不再A梦过去多啦不再A梦2810 days ago623

reply all(4)I'll reply

  • 某草草

    某草草2017-05-02 09:43:21

    If there is no conflict, just switch to the submission you need.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-02 09:43:21

    git reset --hard

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:43:21

    You can go back to the previous version

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:43:21

    Use the git reflog command to view your historical change records,
    Then you can use git reset --hard HEAD@{n}, (n is the reference position you want to roll back to) to roll back.

    reply
    0
  • Cancelreply