解决The current branch is not configured for pull No value for key branch.master

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

1.在本地工程目录找到config文件;
2.修改config文件内容为:
[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    [remote "origin"]
        url =   https://github.com/tianbaoxin/java.git
https://github.com/tianbaoxin/java.git
https://github.com/tianbaoxin/java.git
        fetch = +refs/heads/*:refs/remotes/origin/*
3.再执行pull方法,发现工作ok了

你可能感兴趣的:(git)