天天看點

(git項目更新時報錯)The current branch is not configured for pull No value for key remote.origin.url found in configuration

1.在本地工程目錄找到config檔案(我的是在E:workspace_gitsicm.gitconfig);

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了