EGIT does not add origin github remote

Why if I create a local repository, then create a github repository and then add that as remote, I commit to local and then I push to remote, but I have no ability to pull from remote to local?

If I add remote using git bash all is well remote is properly configured and I can pull, and push and fetch to upstream but if I do it thru the EGIT wizard it never works for local repositories that get pushed and then get fetched and merged…
Any clues?

  • Eclipse git and ssh-agent
  • Remove ORIG_HEAD and FETCH_HEAD from history view in Eclipse
  • EGit: Pruning Remote Tracking Branches that have been Deleted on the Remote Repo
  • Developing in eclipse without using any git eclipse plugin?
  • Exporting a local EGit repo to local GitStack repo
  • How to work around “multiple merge bases” error in EGit Eclipse plugin?
  • Here is the log post:

    eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32,
    Framework arguments: -product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product

    Error Tue Sep 20 10:40:05 BST 2011 The current branch is not
    configured for pull

    org.eclipse.jgit.api.errors.InvalidConfigurationException: No value
    for key branch.master.merge found in configuration at at
    org.eclipse.egit.core.op.PullOperation$ at

  • Git clean inside ignored folders
  • pushing to github from work “Bad file number” error
  • How do you merge the master branch into a feature branch with GitPython?
  • Git diff -w ignore whitespace only at start & end of lines
  • git repo objects directory balloons to large sizes for no apparent reason
  • Git log - How to list all commits that don't start with a specific word
  • 4 Solutions collect form web for “EGIT does not add origin github remote”

    simply add

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

    into .git/config
    to pull from origin/master into master

    You can do this in the “Git Repositories” tab.

    Window > Show view > Other… > Git > Git Repositories

    Expend your project’s repository > Right click on “Remotes” > Create Remote…

    There’s a discussion on this providing a proposed solution, and pointing to a bugzilla bug report at .

    In short, the issue seems to be that the Egit system does not know which branch on the remote corresponds to the master branch in eclipse, and the solution is adding this info to a config file.

    The change in the config file didnt work in my case.

    So I deleted the local project after the initial push and did a pull afterwards. Now everything’s fine.

    Git Baby is a git and github fan, let's start git clone.