Custom Search

Tuesday, April 22, 2014

How to Git create a new branch and push to github.com

1)
Create a branch "new_branch"
#git branch new_branch

2)
Switch to the branch "new_branch"
#git checkout new_branch

3)
Find name of the remote
#git remote -v

4)
Push the branch "new_branch" to remote "origin"
#git push origin new_branch

No comments:

Post a Comment