(git项目更新时报错)The current branch is not configured for pull No value for key remote.origin.url found in configuration

1.在本地工程目录找到config文件(我的是在E:\workspace_git\sicm\.git\config);

2.修改config文件内容为:

[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"] 
        remote = origin 
        merge = refs/heads/master 
    [remote "origin"] 
        url = http://192.168.72.223/zhsq/sicm.git   (修改为自己的url,git项目的地址)
        fetch = +refs/heads/*:refs/remotes/origin/*

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

posted @ 2018-03-29 14:07  亮亮的繁星相随  阅读(2585)  评论(0编辑  收藏  举报