解决fatal: No remote repository specified. Please, specify either a URL...
来源:互联网 发布:linux的date命令 编辑:程序博客网 时间:2024/06/06 03:39
今天在电脑上用git pull命令来更新本地项目,突然发现出现如标题的错误:
user ~/c/quhao$git pullfatal: No remote repository specified. Please, specify either a URL or aremote name from which new revisions should be fetched.出现这个问题的原因是.git/config的配置出问题了。
解决方法是从其他项目里拷贝一份config过来,再改一下里面的url就可以了,或者用下面的模板:
[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把其中换成你项目的地址就可以了:
url = https://github.com/CrossLee/xxx.gitpushurl = https://github.com/CrossLee/xxx.git
- 解决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 ——诺诺"涂鸦"记忆
- 京东李鹏涛:如何迎接“双十一”电商饕餮盛宴
- #include<>和#include “”的区别
- 输入圆的半径,求出该半径的圆的周长和面积并输出
- 泛型算法
- Vmware10下安装Mac OS X Mountain Lion10.8.5
- 解决fatal: No remote repository specified. Please, specify either a URL...
- 输入矩形的长和宽,求出该矩形的周长和面积
- [unity3d]Assetbundle使用示例2(支持多平台)
- [转载]图像处理与计算机视觉:基础,经典以及最近发展
- 工作效率低下?业内人士建议你切勿追求完美
- 在linux终端下打开pdf文件
- Android导入一个工程时提示 Invalid project description的解决方法
- locale::facet::_S_create_c_locale name not valid
- 任意输入两个整数,输出最大值