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 branc
git repository view -> + branches -> local -> select the local branch you want to assign to the remote one -> right click -> select the remote (probably origin) and the upstream branch
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.
Same problem. Here's how I solved it within eclipse/egit:
Originally I cloned a remote repo to my office computer (my own repo, but on a remote server). Then I created a new branch of repo project locally ("testing"), and pushed it to remote repository. Cloned remote repo to my laptop, switched to "testing" branch, worked on it, etc., pushed, then came back to office. When I tried to pull "testing" changes from server, got msg "local branch not configured for pull".
Problem is that on desktop, "testing" is local only, does not have remote URL info, so cannot pull changes.
I solved this within eclipse (egit) by:
Steps were:
Note: am running Eclipse Indigo . Steps may be different on other releases.
About gview's solution:
then find the .git directory in that working directory and edit the .git/config file with a text editor
You don't need to find it yourself or open it with a text editor.
[branch "master"]
remote = origin
merge = refs/heads/master
You need to replace your config file with this code.. your config file is located inside 'git' folder in your repository. The 'git' folder is hidden so first you have to show the hidden files. Open the config file and write these codes :-
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = 'url to the git repository that you want to pull'
fetch =
+refs/heads/*:refs/remotes/origin/*
puttykeyfile =
[branch "master"]
remote = origin
merge = refs/heads/master
[gui]
wmstate = normal
geometry = 887x427+66+66 171 192
I got the same issue in Eclipse Neon. But none of the solution worked for me. I got the issue when I changed branch of the project and then it threw this error.The solution I tried is:
PS: As it is an old thread, just updating as this might come in for someone else.