I also had this error while trying to drag changes to a branch that was not created from the upstream branch from which I am trying to pull.
Eg - creates a new branch corresponding to the night-version upstream
git checkout upstream/night-version -b testnightversion
This creates a testmaster branch in local, which corresponds to the upstream master branch.
git checkout upstream/master -b testmaster
Now, if I try to pull the night-version changes in testmaster , the branch will result in this error.
git pull upstream night-version
I managed to solve this by going to the correct branch and pulling out the changes.
git checkout testnightversion git pull upstream night-version
jitendrapurohit Dec 02 '16 at 5:47 2016-12-02 05:47
source share