还没有commit之前,需要撤销。

最暴力的,直接用git reset --hard HEAD

 

If you run git merge --squash <other-branch> the working tree and index are updated with what the result of the merge would be, but it doesn't create the commit. All you need to do is to run:

git commit

However, if you change your mind before committing and just want to abort the merge, you can simply run:

git reset --merge

You don't need to use the reflog.

 

 

 

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2021-11-12
  • 2022-01-13
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-07-11
  • 2021-09-19
相关资源
相似解决方案