xxxxxxxxxx
git push -u origin localBranch:remoteBranchToBeCreated
xxxxxxxxxx
# Push newly created local branch to remote
git push --set-upstream origin <branch name>
xxxxxxxxxx
# to create a new local branch
git branch <branch-name>
# to push it to the remote repository
git push -u origin <branch-name>
xxxxxxxxxx
git push origin HEAD
A handy way to push the current branch to the same name on the remote.
# To set upstream tracking information in the local branch,
# if you haven't already pushed to the origin.
git push -u origin HEAD