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
Written by Ilic Davor
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Github
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/57823/big_pimpin.jpg)
projectcleverweb
289.2K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/46943/me_180x180.png)
jjperezaguinaga
90.23K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#