(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了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM