문제

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
  2. git commit --amend

Now my question is if I again dogit push origin HEAD:refs/for/master [after git commit --amend] Do I get new gerrit link?

If yes, is there any way that my changes get reflected in my old gerrit link?

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top