git merge one local branch into another local branch code example Example: git merge branch to another branch git checkout targetBranch git merge sourceBranch