merge two branches into a new branch code example
Example 1: git merge two branches
git checkout targetBranch
git merge sourceBranch
Example 2: git merge branch a to branch b
git checkout b # b is checked out (b could be master for exampel)
git pull # update local b
git merge a # merge branch a into b
git push # b changes on remote.