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

后端 未结 17 1067
太阳男子
太阳男子 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 17:03

    To fix this problem in Eclipse, open the Windows menu and select Show View / Other / Git Repositories.

    From the Git Repositories tab:

    • expand your local repository
    • right click on Remote
    • click on Create Remote...
    • Remote name = origin
    • next to IRI press the Change button
    • CTRL+SPACE on URI
    • select the remote location
    • press Finish
    • press Save and Push

    Again, from the Git Repositories tab:

    • right click on origin
    • select Configure Fetch...
    • on Ref mapping press the Edit (Advanced)...
    • press Add All Branches Spec
    • select the Force Update checkbox
    • press Finish

    Again, from the Git Repositories tab:

    • right click on your local repository
    • select Properties
    • press New Entry...
    • enter the following two keys:

    (1)

    Key = branch.master.remote
    Value = origin
    

    (2)

    Key = branch.master.merge
    Value = refs/heads/master
    

提交回复
热议问题