how to combine branches to single in git code example Example: git merge two branches git checkout targetBranch git merge sourceBranch