So, I am still fairly new to git and still running into things here and there. Someone shared a quick tip for pulling on master branch... git rebase origin/master
. So, I did the same on develop not thinking it would hurt it. Not I am at branch (develop|REBASE 1/2)
. And when I switch to master it still shows (develop|REBASE 1/2)
. I went to revert backwards a commit and nothing happened.
I am trying to undo this and get back to the latest commit. Does anyone have any suggestions?
EDIT So, I finally found something to help. I first ran git rebase --abort
, then I really needed to go backwards so I ran git reset --hard HEAD@{22}
to go back to the last commit I needed to before messing up.
git rebase --abort
将取消您当前已签出的分支上的rebase操作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.