If I understood your question, you want to merge branchB into branchA. To do so,
first checkout branchA like below,
git checkout branchA
Then execute the below command to merge branchB into branchA:
git merge branchB
If I understood your question, you want to merge branchB into branchA. To do so,
first checkout branchA like below,
git checkout branchA
Then execute the below command to merge branchB into branchA:
git merge branchB