0
点赞
收藏
分享

微信扫一扫

fatal: No remote repository specified. Please, specify either a URL or a remote name from which new


使用git从github上拉代码时出现如下错误:

fatal: No remote repository specified.  Please, specify either a URL or a

remote name from which new revisions should be fetched.

解决方法:

进入项目目录,输入:

$ git config -e

查看一下你的配置文件,可能没有url和pushurl的配置,添加一下,地址就是的github上项目的地址。

[core]  
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = https://github.com/xxxx/xxx.git
pushurl = https://github.com/xxxx/xxx.git

保存后再重新去执行你的命令应该就可以了。


举报

相关推荐

0 条评论