git pull命令更新本地项目的时候遇到“No remote repository specified……”的错误
2016-08-17 14:36
627 查看
有些用户在使用git pull命令更新本地项目的时候会遇到“No remote repository specified……”的错误,那么要如何解决呢?
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的配置出问题了。
解决方法:
修改“.git”文件夹里面的“config”文件的url就可以了:
[html]
view plain
copy
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = https://github.com/checkfrank/checkfrank.github.io.git
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = https://github.com/checkfrank/checkfrank.github.io.git
[branch "master"]
remote = origin
merge = refs/heads/master
把其中换成你项目的地址就可以了:
[html]
view plain
copy
url = https://github.com/CrossLee/xxx.git
pushurl = https://github.com/CrossLee/xxx.git
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的配置出问题了。
解决方法:
修改“.git”文件夹里面的“config”文件的url就可以了:
[html]
view plain
copy
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = https://github.com/checkfrank/checkfrank.github.io.git
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = https://github.com/checkfrank/checkfrank.github.io.git
[branch "master"]
remote = origin
merge = refs/heads/master
把其中换成你项目的地址就可以了:
[html]
view plain
copy
url = https://github.com/CrossLee/xxx.git
pushurl = https://github.com/CrossLee/xxx.git
相关文章推荐
- git pull命令更新本地项目的时候遇到“No remote repository specified……”的错误
- git pull命令更新本地项目的时候遇到“No remote repository specified……”的错误
- git pull代码时候出现,或者push代码无效 报错:git No remote repository specified
- git No remote repository specified
- git新建项目第一次上传的时候出现 错误提示:fatal: remote origin already exists.
- git pull命令将git服务器的文件更新到本地
- 你在执行composer self-update更新命令的时候可能会遇到错误:
- github fork+pull 远程更新主项目到本地
- Android Studio中Git更新本地的远程(remote)branch列表?
- Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.merge found in configuration
- SqlServer 队列读取器代理在连接<subscriber>上的<subscriber_db>时遇到错误“No specified error”
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- Git常用命令和场景(一)--线上代码更新 和 项目代码提交
- 发布MVC项目到服务器上时候遇到的 模块 DirectoryListingModule 通知 ExecuteRequestHandler 处理程序 StaticFile 错误代码 0x00000000
- 使用git pull时,项目没有更新?
- 【Mood-17】 github中在本地进行上传的时候出现ERROR: Repository not found. fatal: The remote end hung up unexpectedly
- 使用Git命令从Github远程仓库更新项目
- git pull更新错误解决办法
- Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.me
- Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.mer