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
While committing, if you encounter this problem. Try this simple approach:
You branch get configured to pull/push. Your code changes will be pushed to repositary.
Thanks
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.
The simplest solution I've found while using the Eclipse Git plugin is as follows:
After this completes, the branch will now be correctly configured for pull as well.
I just got the same issue but accepted answer did not work for me. Here's what I did (although I can't confirm if accepted answer had an impact as the updated config remains) :
Expand your git repository tree from 'Git Repositories' view.
Right click on 'Remotes' and select 'Create Remote'
Select radio button 'Configure fetch' -> 'Ok'
Select 'Change' opposite 'URI' text box
Enter your git repository details and click 'Finish'
Select 'Save'
You should now be able to pull from the remote repository.
Note - when I tried 'Dry-Run' which I think is just a connection test it failed but the pull still worked.
To fix this problem in Eclipse, open the Windows menu and select Show View / Other / Git Repositories.
From the Git Repositories tab:
Again, from the Git Repositories tab:
Again, from the Git Repositories tab:
(1)
Key = branch.master.remote
Value = origin
(2)
Key = branch.master.merge
Value = refs/heads/master
edit the config file in your repository .git folder like this.
replace https://github.com/your/uri
to your github repository uri.
good luck.
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/your/uri
fetch = +refs/heads/*:refs/remotes/origin/*
ps: use idea, forget eclipse