首页 > 代码库 > git Could not read from remote repository 解决
git Could not read from remote repository 解决
错误:
fatal: ‘origin‘ does not appear to be a git repositoryfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
解决办法:
Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)$ git remote add origin git@gitserver:TestRedis.gitElvis@ELVIS-PC /f/gitrepo/TestJedis (master)$ git push origin masterssh: gitserver: no address associated with namefatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)$ git remote set-url origin git@github.com:afredlyj/TestRedis.gitElvis@ELVIS-PC /f/gitrepo/TestJedis (master)$ git push origin masterEnter passphrase for key ‘/c/Users/Elvis/.ssh/id_rsa‘:Counting objects: 8, done.Delta compression using up to 2 threads.Compressing objects: 100% (7/7), done.Writing objects: 100% (7/7), 2.07 KiB, done.Total 7 (delta 2), reused 0 (delta 0)To git@github.com:afredlyj/TestRedis.git 7bcfb1a..b02a2fe master -> masterElvis@ELVIS-PC /f/gitrepo/TestJedis (master)
git Could not read from remote repository 解决
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。