master branch code example
Example 1: create new branch git
$ git checkout -b [name_of_your_new_branch]
Example 2: create a branch command
$ git remote add [name_of_your_remote] [name_of_your_new_branch]
Example 3: how to commit a branch in git
git commit -m "added my github name"
Example 4: merge branch to master
$ git checkout master
$ git branch new-branch
$ git checkout new-branch
# ...develop some code...
$ git add –A
$ git commit –m "Some commit message"
$ git checkout master
$ git merge new-branch