分支topical_xFeature实现了一个功能,有10个提交,这时候只想合并为1个提交,并提交到master分支上
git checkout master
git merge --squash topical_xFeature
git commit
打赏
如果这篇文章解决了您的问题,让我买根烟抽抽。


分支topical_xFeature实现了一个功能,有10个提交,这时候只想合并为1个提交,并提交到master分支上
git checkout master
git merge --squash topical_xFeature
git commit
如果这篇文章解决了您的问题,让我买根烟抽抽。
本文标题:git 将多个commit合并为1个commit
本文链接:https://www.haomeiwen.com/subject/zeapchtx.html
网友评论