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
The branch which you are tryin to merge may not be identified by you git at present
so perform
git branch
and see if the branch which you want to merge exists are not, if not then perform
git pull
and now if you do git branch, the branch will be visible now,
and now you perform git merge