do you switch to the branch you want to merge into code example
Example 1: make a new branch git
git checkout -b branch-name
Example 2: create new branch git
$ git checkout -b newBranchName
git checkout -b branch-name
$ git checkout -b newBranchName