提交gerrit只出现一次commit

原创
2011/10/08 11:12
阅读数 889

2011-06-12 @ taobao

对于本地频繁commit后, 提交gerrit进行code review会出现一个太过细节现象, 尤其是一些代码的反复修改其实可以不用展现出来.

可以通过以下笨办法来合并所有的本地commits:

git pull update
git checkout -b fix-xxx
git commit -am "fix xxx"
git chekcout master
git merge --squash fix-xxx
git commit -am "fix xxx"
git push update


 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
1 收藏
0
分享
返回顶部
顶部