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
You are getting this error because the branch you want to merge doesn't exist on your local repository.
So, first checkout the brach you want to merge into master branch by the following command:
git checkout branch_name_to_merge
After this try to merge it with master branch by the following command:
git merge branch_name_to_merge