merge branche into branche 2 code example
Example 1: merge branch to branch
git checkout master
git merge new-branch
git push
Example 2: git merge branch to another branch
git checkout targetBranch
git merge sourceBranch
git checkout master
git merge new-branch
git push
git checkout targetBranch
git merge sourceBranch