Last Updated: February 25, 2016
·
608
· webfacer

git create branch local and push the new barnch to repositry

You created a branch local and want now to push it to your existing browser.

creating a branch and switch to it:

$ git checkout -b localBranch
$ git commit -a

after that you want to push the hole branch to your repositiory:

$ git push -u origin **localBranch**

after that you will see this line output after it is pushed to repository:

* [new branch]      localBranch -> localBranch