git pull 报错 fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. 解决办法

fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. 这是服务器.git文件夹中的config配置有问题,修改一下文件就可以了。

git pull 报错 fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. 解决办法

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true

[remote "origin"]
        url = 项目url
        fetch = +refs/heads/*:refs/remotes/origin/*
        pushurl =项目url
[branch "master"]
    remote = origin
    merge = refs/heads/master
赞(1) 打赏
转载请注明出处:猿客栈 » git pull 报错 fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. 解决办法
分享到:

评论 抢沙发

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏