简体   繁体   English

提交-修改完成时进行git push

[英]git push when commit --amend is done

I have done the following 我做了以下

  1. git commit
  2. 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
  1. Now in gerrit review I have received comments to change logic so did 现在在Gerrit评论中,我收到了更改逻辑的评论,所以
  2. git commit --amend

Now my question is if I again do git push origin HEAD:refs/for/master [after git commit --amend ] Do I get new gerrit link? 现在我的问题是是否再次执行git push origin HEAD:refs/for/master [在git commit --amend ]我是否获得新的gerrit链接?

If yes, is there any way that my changes get reflected in my old gerrit link? 如果是,我的更改是否可以通过我的旧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. 只要您不从提交消息中删除Change-Id行,Gerrit就会将新提交分组到旧问题上。 (see also manual ) (另请参见手册

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM