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