I just encountered a problem when merging a branch into master in git. First, I got the branch name by running git ls-remote. Let\'s call that branch \"branch-n
git ls-remote
It may happen because that branch is not on your local. before merging use
git fetch origin