Eclipse中使用git进行pull远程代码,报错The current branch is not configured for pull No value for key branc

解决方法:

  1. 在我们本地工程目录找到config文件(在工程下.git文件夹中);

  2. 修改config文件内容为:

[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.再执行pull方法

猜你喜欢

转载自blog.csdn.net/qq_39026548/article/details/79831821
今日推荐