git set new branch as master code example

Example 1: create new branch git

$ git checkout -b [name_of_your_new_branch]

Example 2: git sync branch with master

git checkout master
git pull
git checkout mybranch
git merge master


# to keep mybranch in sync with master

# then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ...

git checkout master
git merge mybranch
git push origin master

Example 3: create new branch git from master

git checkout -b new-branch-name

Example 4: creating new branch in git

Create a new branch named issue1.

$ git branch testing

Tags:

Php Example