The current branch is not configured for pull No value for key branch.master.merge found in configuration

Ismail Marmoush picture Ismail Marmoush · Jan 11, 2012 · Viewed 81.4k times · Source

I get this error when I try to pull from remote repository using Egit team>pull

The current branch is not configured for pull No value for key branch.master.merge found in configuration

Answer

Michał Szajbe picture Michał Szajbe · Jan 11, 2012

Your local master branch is not set up to track remote master branch.

You could do git pull origin master to tell git the explicit branch you want to pull or you add this to your .git/config:

[branch "master"]
  remote = origin
  merge = refs/heads/master

When you push to master for the first time, add the -u switch (git push -u origin master). This will set everything up automatically.