简体   繁体   中英

undoing git commit after rebase

I am new to all this git commit stuff. I followed these commands:

git commit -m "my message"
git fetch upstream
git rebase upstream/master

then I got conflict. I have got the problem and now want to revert this commit. How do I do that?

git rebase --abort会将HEAD重置为开始进行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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM