美文网首页
git 将多个commit合并为1个commit

git 将多个commit合并为1个commit

作者: 谢昆明 | 来源:发表于2020-02-26 10:04 被阅读0次

分支topical_xFeature实现了一个功能,有10个提交,这时候只想合并为1个提交,并提交到master分支上

git checkout master
git merge --squash topical_xFeature
git commit

打赏

如果这篇文章解决了您的问题,让我买根烟抽抽。

支付宝.jpg 微信.jpg

相关文章

网友评论

      本文标题:git 将多个commit合并为1个commit

      本文链接:https://www.haomeiwen.com/subject/zeapchtx.html