Thread: git coaching
View Single Post
  #4  
Old 09-29-2014, 04:03 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Was waiting on merging it cause demon had raised some concerns but in the meantime branching is your friend

Creating a branch with name "some_feature_branch_name"
Code:
git checkout -b some_feature_branch_name
To move back to master
Code:
git checkout master
To switch back to branch and merge changes from master you just got
Code:
git checkout some_feature_branch_name
To say merge code from master after you've updated it
Code:
git merge master
You can setup pull requests to use your own named branches instead of master.

Also: http://git-scm.com/book/en/Git-Branc...ng-and-Merging
Reply With Quote