how to merge master branch to child branch in git code example Example: merge child branch to parent git git checkout master git merge child