Git / gerrit, push remote rejected no changes made

前端 未结 9 1579
说谎
说谎 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:17

    If you are trying to update a set of reviews, each with their own change-id that you want to maintain (say, after a rebase where you swap the order of two commits), you might get rejected if some of the commits in the pile remain unchanged. You should force a new hash to be generated by rewording the commits, or something similar.

提交回复
热议问题