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