I\'m trying to push a new local branch product-0.2 to remote where there is already a tag with the same name (but the branch itself does not exist)
product-0.2
This failed :
git push $origin $branch:$branch
While this worked for me :
git checkout $branch git push $origin HEAD:$branch