提交--amend时执行git push [英] git push when commit --amend is done
本文介绍了提交--amend时执行git push的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经完成了以下
-
git commit
-
git push origin HEAD:refs/for/master
git commit
git push origin HEAD:refs/for/master
我收到了类似以下的消息:
I have received message similar to below:
remote: Resolving deltas: 100% (8/8)
remote: Processing changes: new: 1, refs: 1, done
remote:
remote: New Changes:
remote: https://gerrit.ericsson.se/abcde
remote:
To ssh://gerrit.ericsson.se:29418/platform/cpp/control.git
* [new branch] HEAD -> refs/for/master
- 现在在Gerrit评论中,我收到了改变逻辑的评论
-
git commit --amend
现在我的问题是是否再次执行git push origin HEAD:refs/for/master
[在git commit --amend
之后]
我会获得新的Gerrit链接吗?
Now my question is if I again dogit push origin HEAD:refs/for/master
[after git commit --amend
]
Do I get new gerrit link?
如果是,我的更改是否可以通过我的旧Gerrit链接反映出来?
If yes, is there any way that my changes get reflected in my old gerrit link?
推荐答案
只要您不从提交消息中删除Change-Id
行,Gerrit就会将新提交归入旧问题. (另请参见手册)
As long as you do not remove the Change-Id
line from the commit message, Gerrit will group the new commit to the old issue. (see also manual)
这篇关于提交--amend时执行git push的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文