0

I tried executing the command git push gerrit HEAD: refs/for/BR_PS_1109

It gave the response: fatal: remote part of refspec is not a valid name in HEAD:

Git remote version is also fine, as evident below:-

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 Answer 1

1

You have a space between HEAD: and refs/for/BR_PS_1109 which souldn't be there. Remove the space and it should work:

git push gerrit HEAD:refs/for/BR_PS_1109

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .