git cammand to merge two branches code example Example: git merge two branches git checkout targetBranch git merge sourceBranch