gerrit push failed to solve the problem

After Gerrit git merge push to failure, suggesting that no new changes?

Here is a solution,

http://blog.csdn.net/cuiaamay/article/details/51965325

 

Easier way: git commit --amend, then do nothing, save the exit like, can regenerate sha1, then you can push the

gerrit push (change closed) solution?

Remember@DESKTOP-MEFCTAV MINGW64 ~/Desktop/VFC/vnfres (master)
$ git push origin HEAD:refs/for/master
Enumerating objects: 27, done.
Counting objects: 100% (27/27), done.
Delta compression using up to 8 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 4.21 KiB | 1.05 MiB/s, done.
Total 15 (delta 10), reused 0 (delta 0)
remote: Resolving deltas: 100% (10/10)
remote: Processing changes: refs: 1, done
To https://gerrit.onap.org/r/vfc/gvnfm/vnfres
 ! [remote rejected] HEAD -> refs/for/master (change https://gerrit.onap.org/r/c/vfc/gvnfm/vnfres/+/93922 closed)
error: failed to push some refs to 'https://gerrit.onap.org/r/vfc/gvnfm/vnfres'


our Commit Change ID is expired ie, Review  is closed. you can't push to same.

Do this to fix issue:

--amend the commit git
the Delete Change the above mentioned id
the Save and quit
new new by Will Change the above mentioned id BE added to the commit at The IT CAN BE Verified by git log..
the Push Again
----------------
Copyright: this article is the original article CSDN bloggers "liuskyter", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/liuskyter/article/details/100517652

Released nine original articles · won praise 1 · views 6684

Guess you like

Origin blog.csdn.net/u014426028/article/details/103633665