git how to merge branche code example
Example 1: merge branch to branch
git checkout master
git merge new-branch
git push
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.