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

后端 未结 17 1037
太阳男子
太阳男子 2020-11-30 16:44

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

17条回答
  •  眼角桃花
    2020-11-30 16:51

    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:

    1. deleting local branch
    2. pull branch from remote repo as new branch.

    Steps were:

    • Go to Git Repository Exploring perspective
    • rename local branch "zzz" (paranoid, don't like deleting until sure I've got it right!)
    • rt-click "Branches", "Switch to", "New Branch"
    • pull down "Source ref" list, select "testing" branch (pull strategy "merge", "Checkout new branch" checked)
    • click "finish"
    • Switch to usual perspective, make sure my files are present
    • switch back to Git Repository Exploring and delete branch "zzz"

    Note: am running Eclipse Indigo . Steps may be different on other releases.

提交回复
热议问题