解决fatal: No remote repository specified. Please, specify either a URL...
来源:互联网 发布:linux hexo github 编辑:程序博客网 时间:2024/06/08 00:14
今天在电脑上用git pull命令来更新本地项目,突然发现出现如标题的错误:
[plain] view plain copyuser ~/c/quhao$git pull fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched.
出现这个问题的原因是.git/config的配置出问题了。
解决方法是从其他项目里拷贝一份config过来,再改一下里面的url就可以了,或者用下面的模板:
[plain] view plain copy[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = false [remote "origin"] url = https://github.com/CrossLee/xxx.git fetch = +refs/heads/*:refs/remotes/origin/* pushurl = https://github.com/CrossLee/xxx.git [branch "master"] remote = origin merge = refs/heads/master
把其中换成你项目的地址就可以了:
[plain] view plain copyurl = https://github.com/CrossLee/xxx.git pushurl = https://github.com/CrossLee/xxx.git
转载自:http://blog.csdn.net/withiter/article/details/14107165
阅读全文
0 0
- 解决fatal: No remote repository specified. Please, specify either a URL...
- 解决fatal: No remote repository specified. Please, specify either a URL.
- 解决fatal: No remote repository specified. Please, specify either a URL...
- 解决fatal: No remote repository specified. Please, specify either a URL...
- 解决fatal: No remote repository specified. Please, specify either a URL...
- Git 提示 No remote repository specified. Please, specify either a URL or a remote name from which new
- git No remote repository specified
- ValueError: cannot index a corpus with zero features (you must specify either `num_features` or a no
- git 解决fatal: Not a git repository
- Filter mapping must specify either a <url-pattern> or a <servlet-name>问题的处理
- git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure y
- Git terminal fatal: Could not read from remote repository.Please make sure ....
- ImproperlyConfigured No URL to redirect to. Either provide a url or define a get_absolute_url metho
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- git学习笔记(2) -- "fatal: Could not read from remote repository. Please make sure you have the corre"
- Git 解决Bug:fatal: Could not read from remote repository ——诺诺"涂鸦"记忆
- NOIP模拟(10.27)T3 心灵治愈
- 使用Java写一个猜数字小游戏
- Form表单中method="post/get'的区别
- 微信小程序的多层循环嵌套
- WebService学习总结(一)——WebService的相关概念
- 解决fatal: No remote repository specified. Please, specify either a URL...
- 4.4其他对象API(System类,Runtime类,Math类,Date类,Calendar类)
- FreeRTOS任务切换
- 总结:Nginx访问ftp的路径报404 错误!
- 因为这家美国公司,蚂蚁金服收购速汇金或胎死腹中
- 每天一道算法题——数组重排序
- 分枝定界法的一般步骤
- linux网络配置
- 奢侈手机品牌 Vertu 被卖给了土耳其人,这次只值 6100 万美元