简体   繁体   English

变基后撤消git commit

[英]undoing git commit after rebase

I am new to all this git commit stuff. 我是所有这些git commit的新手。 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操作时的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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