Answers for "git create new remote branch and push"

7

push a new branch

git push -u origin <branch-name>
Posted by: Guest on May-24-2020
-1

git push in a new branch

git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
Posted by: Guest on January-24-2021
1

create new remote branch

git checkout -b <new-branch-name>	#Create new branch locally
git push <remote-name> <new-branch-name> #Create new branch remotely
Posted by: Guest on November-26-2020
1

Push your branch up to the remote.

$ git push <remote> <branch>
Posted by: Guest on September-11-2020

Code answers related to "git create new remote branch and push"

Browse Popular Code Answers by Language