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 保存后再重新去执行你的命令应该就可以了。
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 保存后再重新去执行你的命令应该就可以了。
相关文章推荐
- Git 提示 No remote repository specified. Please, specify either a URL or a remote name from which new
- 解决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...
- Filter mapping must specify either a <url-pattern> or a <servlet-name>问题的处理
- ValueError: cannot index a corpus with zero features (you must specify either `num_features` or a no
- fatal: could not read Username for 'https://github.com': No such file or directory
- Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"
- javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter,
- remote: Invalid username or password. fatal: Authentication failed for .......
- GitHub错误处理:fatal:could not read Username for 'https://github.com': No such file or directory
- fatal: could not read Password for 'https:/username@bitbucket.org': No such file or directory
- javax.naming.NoInitialContextException: Need to specify class name in environment or system property
- fatal: could not read Username for 'https://github.com': No such file or directo
- No live nodes contain current block. Will get new block locations from namenode and retry...
- javax.naming.NoInitialContextException: Need to specify class name in environment or system property
- git SourceTree(remote:invalid username or password,fatal:Authentication falied for 'https:...
- javax.naming.NoInitialContextException: Need to specify class name in environment or system property
- ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up