gerrit push失败问题解决

git merge 后 push 到 Gerrit 失败,提示 no new changes ?

这里有个方法解决,

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

 

更简单的方法:git commit --amend,然后什么也不做,直接保存退出就好,可以重新生成sha1,然后就可以push了

gerrit push (change closed)解决办法?

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'

gerrit push失败问题解决_第1张图片
our Commit Change ID is expired ie, Review  is closed. you can't push to same.

Do this to fix issue:

git commit --amend
delete change id
save and quit
new change id will be added to the commit. it can be verified by git log.
push again
————————————————
版权声明:本文为CSDN博主「liuskyter」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/liuskyter/article/details/100517652

你可能感兴趣的:(gerrit push失败问题解决)