注意
git rebase --abort
正文
如何把第2~6次提交合并成一次提交
image.png
1、选中需要合并的提交,选择 【Squash Commits】
image.png
2、会将选中的几次提交 message 合并在一起,重新编辑提交的message
image.png
git log 查看更改后的提交记录
image.png
然后执行 git push -f 覆盖远端即可。在远端查看符合预期
image.pnggit代码合并
image.png
git rebase --abort
如何把第2~6次提交合并成一次提交
1、选中需要合并的提交,选择 【Squash Commits】
2、会将选中的几次提交 message 合并在一起,重新编辑提交的message
git log 查看更改后的提交记录
然后执行 git push -f 覆盖远端即可。在远端查看符合预期
image.pnggit代码合并
本文标题:git多条commit提交合并成一条
本文链接:https://www.haomeiwen.com/subject/plotwdtx.html
网友评论