merge branch into branch code example
Example 1: git command to create a branch
//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]
Example 2: merge branch to branch
git checkout master
git merge new-branch
git push
Example 3: how to merge a branch into another branch
git checkout YourBranch
git merge develop
Example 4: 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.