merge with parent branch code example Example 1: git pull from parent branch git merge A Example 2: merge child branch to parent git git checkout master git merge child