merge a feature branch to master git code example
Example 1: git create new branch
// create and checkout new branch in one line
git checkout -b new_branch
Example 2: 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