git merge new changes in master to other branch code example
Example 1: git new branch
$ git checkout -b [your_branch_name]
# Switched to a new branch [your_branch_name]
# This is shorthand for:
$ git branch [your_branch_name]
$ git checkout [your_branch_name]
Example 2: git merge master into branch
# 2. merge feature branch to origin/master branch
$ git checkout master
$ git pull origin/master
$ git merge feature
$ git push origin/master
Example 3: merge master into feature branch
git checkout feature1
git merge master
Example 4: how to make branch in git command
git branch crazy-experiment