Git / gerrit, push remote rejected no changes made

前端 未结 9 1600
说谎
说谎 2020-12-22 23:45

Made changes to a commit, performed commit amend. Do a push and I get the error:

! [remote rejected] master -> refs/for/master (no changes made)
         


        
9条回答
  •  抹茶落季
    2020-12-23 00:21

    I had the same error message, but the changes I was trying to push were on top of different commits from the original Change set (did some magic tricks with git cherry-pick and it seems gerrit did not like it). I abandoned my original change, then reopened it when I realized I could fix the issue, but failed to send to gerrit with git review.

    At this point, my quick solution was to abandon the original change from gerrit website, and create a new change by removing the change-Id: sha1 last line from the commit message with git commit --amend.

提交回复
热议问题