我尝试执行命令git push gerrit HEAD: refs/for/BR_PS_1109
它给出了答复:fatal: remote part of refspec is not a valid name in HEAD:
Git 远程版本也很好,如下所示:-
vverma@l-vverma:~/git_repo/nextag$ git remote -v
gerrit ssh://[email protected]:29418/apps/nextag (fetch)
gerrit ssh://[email protected]:29418/apps/nextag (push)
origin [email protected]:apps/nextag (fetch)
origin [email protected]:apps/nextag (push)
答案1
HEAD:
和之间有一个空格,但refs/for/BR_PS_1109
这个空格不应该存在。删除这个空格,它就可以正常工作了:
git push gerrit HEAD:refs/for/BR_PS_1109