I have pulled a project from git repository(remote server). I did some modification.
Now I need to push as branch in a server not in main line.
For example, In server, V1->V2->V3.
My working area is on V2. And I want to push as V2.1. Not as V4.
Usual command i used for Pushing is git push origin HEAD:refs/for/master/issue5221
.
Is there some thing to replace master
in that command to push as a branch?
I tried some thing like this git push origin HEAD:refs/for/my_branch/issue5221
. But it is not working. Since "my_branch
" is not in remote server.