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

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

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.

Most likely, you created the branch locally and you haven't set the merge section of that branch and/or your local branch is not tracking the remote branch. The problem lies in your git local configuration. Right-click your project and click properties. Get the location of your project in git. The current branch is not configured for pull No value for key branch.master.merge found in configur ; 2. The current branch is not configured for pull No value for key branch.master.merge found in config ; 3.

As it turns out, @Michał Szajbe's answer IS the solution to the problem. The eclipse keys in question are built from the egit "working directory". Should you encounter this problem, then find the .git directory in that working directory and edit the .git/config file with a text editor, adding the section Michal describes. This is in my experience a fairly standard operation these days for cases when you first git init and push to an uninitialized remote, that creates the master branch. I haven't found a way in that case not to do the manual editing in order to git pull, even with command line git.

After the edit is saved, right click on the git repo in your egit "Git Repositories" perspective, and choose properties, you will now see this section of keys has been created (or more likely just read from the config file) and a remote master to local master git pull will operate as expected going forward.

It's possible that you could enter these keys and values yourself, but copying and pasting what Michal shows is certainly a lot faster and probably safer. I didn't actually try adding the keys manually through the property editor nor am I likely to, as I know this method works, and makes sense since egit is simply calling through to the local git repo.

I am also supporting some people in my office who are using Flex and the Flexbuilder editor which is built on top of eclipse and egit. These instructions are equally relevant to them.

"The current branch is not configured for pull. No value for key branch.master.​merge found in configuration" After some searching, I read that  When I want to pull I had the same problem described here: The current branch is not configured for pull No value for key branch.master.merge found in configuration. When I add the following to .git/config [branch "master"] remote = origin merge = refs/heads/master I get another error:

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. The current branch is not configured for pull No value for key branch.master.merge found in configuration 2 Clone a GitHub Repository in Eclipse Luna Release (4.4.0) on Windows 7

This worked for me:

Right-click my checked-out local branch that can't pull (mine's called "development") Select "Configure Branch..." For "Upstream Branch:", I selected "refs/heads/development" For "Remote:" I selected "origin" Left "Rebase" unchecked Hit OK

Now my config pref window looks like the one in gview's answer.

from GIthub to my Eclipse local. I got error message below. The current branch is not configured for pull No value for key branch.master.merge found in config. android The current branch is not configured for pull No value for key branch.master.merge found in configuration issue : 네이버 블로그. 본문 바로가기. 블로그. 카테고리 이동페라리코스타. 검색MY메뉴 열기. Android. android The current branch is not configured for pull No value for key branch.master.merge found in configuration issue. 페라리코스타. 2013.

I also had problems to configure it. It is working now so I'm going to share my configuration file. I think it will help:

[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true

    [branch "master"] 
        remote = origin 
        merge = refs/heads/master 
    [remote "origin"] 
        url = https://github.com/chelder86/ArcadeTongame.git
        fetch = +refs/heads/*:refs/remotes/origin/*

Note: https://github.com/chelder86/ArcadeTongame.git should be replaced with your own HTTPS clone URL.

Resolving the Git Error current-branch-is-not-configured-for-pull for Pull. No Value for key remote.origin.url found in configuration. In Github [branch "​PullRequestError"] remote = origin merge = refs/heads/PullRequestError. The current branch is not configured for pull No value for key branch.master.merge found in configu 2015-03-17 branch git merge github Git MMC updates for configuration manager (Software updates) Warning

repository using Egit team>pull The current branch is not configured for pull No value for key branch.master.merge found in configuration.

Comments
  • Had the same issue but for value for key remote.origin.url found how fix this on stackoverflow.com/a/10662106/759452
  • But how do you do this in eclipse? I believe the question is tagged as "eclipse". Thanks! :)
  • +1 Thanks anyway. Your answer did help because it turns out we weren't set up to pull :) Once we figured out how to configure that in Eclipse, things came together. We're now finding that Git isn't all that painful to work with once you wrap your head around the way it works. We basically checked out the repository again and configured it to pull.
  • @jmort253 would be great if you were to update the question with the details of what you had to change in eclipse to configure this.
  • @gview - Sorry, I stopped using Egit and am using the command line. When I pull, Eclipse marked any files my colleagues committed as modified by me and wouldn't include the changes. So, I'm using the command line. I do not recommend EGit; however, my colleagues using Macs are able to use it. If I do try to give it another chance (doubtful), I'll update the answer here. Quite frankly, I don't see what all the hype is about. I'm ready to move back to Subversion.
  • @jmort253, after i left you the message, I poked around and figured out that the best way to handle this is to do exactly what was recommended in the original reply. Egit reads the values from the .git/config, so editing it with a text editor as described, fixes the problem.
  • I did not edit the config file directly, but added the key "branch.master.merge" using the Properties dialog shown above. This also worked like a sharm.
  • To me, this is the best answer for the question.
  • The accepted answer seems to be missing some steps that are covered here.
  • I found "Configure Branch..." very hard to find. I managed to find it by going to "Git Repositories" view, expanding branches, local and then right clicking on the branch
  • A working configuration file is exactly what I needed to look at. Thanks!
  • works perfectly. Similar solution as for this question stackoverflow.com/a/10662106/759452
  • this did it in eclipse without any of the "configuration file" modifications. Should be the accepted answer, as the question is specific to eclipse.