您的位置:首页 > 编程语言

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

2018-03-23 15:20 645 查看
使用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 保存后再重新去执行你的命令应该就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  github
相关文章推荐