eGit doesn't know, which remote branch you want to pull from. If you create your local branch based on a remote tracking branch, then the key is generated automatically. Otherwise you have to create it yourself:
branch.master.merge=refs/heads/master
branch.master.remote=origin
where master stands for the branchname, in the key it's your local branch, in the value it's the branch in the remote repository. Place that in the repository-specific configuration file %repositorypath%\.git\config
As for the terms:
merge: join two or more development histories togetherfetch: download objects and refs from another repositorypull: fetch from and merge with another repository or local branchsync: allows you to compare 2 branches
In general, I urge you to read eGit user guide, where you can get even better understanding of Git and eGit. It can be found at http://wiki.eclipse.org/EGit/User_Guide
Answer from Eugene Ryzhikov on Stack Overflowgit - How to pull a branch from remote to local in eclipse (update branch) - Stack Overflow
git - How to pull code from the master in eGit to my local branch in eclipse IDE? - Stack Overflow
egit - Eclipse GIT pull and push operation on single file - Stack Overflow
eclipse - egit pull dialog "when pulling" options - Stack Overflow
Videos
The error message "This branch is not configured for pull" in EGit is typical of a branch created locally and pushed.
That wouldn't set the merge section of that branch.
See "The current branch is not configured for pull No value for key branch.master.merge found in configuration"
[branch "master"]
remote = origin
merge = refs/heads/master
To solve that, one way is to rename your current master branch, and, in the Git Repositories view:
- Right-click on "
Branches" / "Switch to" / "New Branch" - pull down "
Source ref" list, select "master" branch (pull strategy "merge", "Checkout new branch" checked) - click "
finish"
The new branch should be correctly configured
This worked for me in Eclipse IDE with EGit:
Open Window->Show view->Other->Git->Git Repositories
Right click on your repo in Git Repositories view -> Properties
Click "Add Entry..." button
key: branch.master.remote
value: origin
OK
Click "Add Entry..." button
key: branch.master.merge
value: refs/heads/master
OK
Right click on your repo -> Pull
Btw. I'm pulling master from remote and my local branch when pulling is also master.