git merge branch a to branch code example
Example 1: how to merge a branch into another branch
git checkout YourBranch
git merge develop
Example 2: git merge two branches
git checkout targetBranch
git merge sourceBranch
git checkout YourBranch
git merge develop
git checkout targetBranch
git merge sourceBranch