How can I push a branch to a different repo with a new name for the branch.
For instance I have a branch feature1
on repo abc
and I'd like to push to repo xyz
and make it the master branch.
I tried using Renaming remote git branch but then after doing a git clone on the new repo I got the error message
git Warning: remote HEAD refers to nonexistent ref, unable to checkout
Is there a way to specify in the push what I want the destination branch name to be?