How to undo 'git reset'?

前端 未结 5 1046
予麋鹿
予麋鹿 2020-11-22 09:17

What\'s the simplest way to undo the

git reset HEAD~

command? Currently, the only way I can think of is doing a \"git clone http://...\" fr

5条回答
  •  耶瑟儿~
    2020-11-22 10:06

    I havn't pushed the reset changes on origin. So just git pull bring my local branch to latest state.

提交回复
热议问题