首页 > 其他 > 详细

How to undo a git merge squash?

时间:2020-03-31 19:32:08      阅读:61      评论:0      收藏:0      [点我收藏+]

How to undo a git merge squash?

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.

How to undo a git merge squash?

原文:https://www.cnblogs.com/chucklu/p/12606611.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!