When using git to pull remote code in Eclipse, the error The current branch is not configured for pull No value for key branch is reported

Solution:

  1. Find the config file in our local project directory (in the .git folder under the project);

  2. Modify the content of the config file to:

[core]
    symlinks = false
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
[remote "origin"]
    url = 自己项目的git地址 
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
    rebase = false

3. Execute the pull method again

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325853564&siteId=291194637
Recommended