×

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

admin admin 发表于2015-09-03 17:13:42 浏览1913 评论0

抢沙发发表评论

1.在本地工程目录找到config文件(我的是在D:\wamp\youthstartup\.git);

2.修改config文件内容为:

[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"] 
        remote = origin 
        merge = refs/heads/master 
    [remote "origin"] 
        url = https://git.oschina.net/yuyunhe/youthstartup.git   (修改为自己的url
        fetch = +refs/heads/*:refs/remotes/origin/*

3.再执行pull方法,发现工作ok了


分享到:

群贤毕至

访客