linux git pull fatal: No remote repository specified. Please, specify either a URL or a remote name

版权声明:本人原创文章,转载时请保留所有权并以超链接形式标明文章出处 https://blog.csdn.net/qq_37138818/article/details/81706330

将项目部署上线时出现

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

先git init 初始化

在到git的这个文件里找到config

配置里面的

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    precomposeunicode = false
[remote "origin"]
        url =https://gitee.com/xxxx/xxx.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        pushurl =https://gitee.com/xxxx/xxx.git
[branch "master"]
        remote = origin
        merge = refs/heads/master

保存即可

猜你喜欢

转载自blog.csdn.net/qq_37138818/article/details/81706330
今日推荐