Answers for "does git push only push the current branch"

3

push to specific remote branch

git push origin localBranchName:remoteBranchName
Posted by: Guest on June-21-2021
0

git push origin current branch

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
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language