git merge sub branch to branch code example
Example 1: how to merge a branch into another branch
git checkout YourBranch
git merge develop
Example 2: merge child branch to parent git
git checkout master
git merge child
git checkout YourBranch
git merge develop
git checkout master
git merge child