git clone failed. Could not read from remote repository

问题:

  在使用git克隆gitee或者github上面的项目时,能够连接上却无法下载下来!

解决:

1、在本地打开git bash 运行

  检查是否有设置账户名

      git config user.name

    如果没有,设置账户名

      git config --global user.name "git账户名"

   生成ssh公钥和私钥,直接enter就可以,注意记下位置(找到id_rsa.pub文件)
      ssh-keygen -t rsa -C "git账户名"

      

  2、打开gitee,进入设置--->ssh公钥(github也是一样的操作  settngs--->SSH and GPG keys)

      创建公钥,将id_rsa.pub文件内容填入

而后就可以clone自己需要的项目!

             

原文地址:https://www.cnblogs.com/alexPeng/p/9973436.html

时间: 2024-11-03 19:26:48

git clone failed. Could not read from remote repository的相关文章

ubuntu 14.04 git clone 出现 fatal: Unable to find remote helper for 'https'

当你编译安装git时因为没有安装(lib)curl-devel所以导致git clone 和 git push 都会出现这个错误 如果你安装了(lib)curl-devel,然后重新编译安装git就没有这个错误了: $ yum install curl-devel $ # cd to wherever the source for git is $ cd /usr/local/src/git-1.7.9 $ ./configure $ make $ make install 在ubuntu上没有

git之fatal: Could not read from remote repository

问题背景:在git bash中使用hexo g -d命令进行文章发布 详细错误信息: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs

【问题解决方案】git clone失败的分析和解决

参考链接 git_clone资源获取失败解决 使用Git clone代码失败的解决方法 [Git] Clone failed 克隆失败的解决方法 问题描述: 无论是git clone还是pull,均失败,git clone大致是如下错误提示 remote: Counting objects: 5148, done. remote: Compressing objects: 100% (16/16), done. error: RPC failed; curl 18 transfer closed

使用git clone error: RPC failed

git clone时,出现这个错误. remote: Counting objects: 4592517, done. remote: Compressing objects: 100% (1140430/1140430), done. error: RPC failed; result=56, HTTP code = 2008.82 MiB | 4.72 MiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fata

git clone 报错:fatal: index-pack failed 解决办法

[email protected] MINGW64 /d/Users/xxx/venv/program (master) $ git clone https://github.com/XXX/program. git Cloning into 'program'... remote: Enumerating objects: 1417, done. remote: Counting objects: 100% (1417/1417), done. remote: Compressing obje

(转)git clone: error: RPC failed; result=18, HTTP code = 200 解决办法

git clone: error: RPC failed; result=18, HTTP code = 200 解决办法 分类: git2013-09-01 17:03 10753人阅读 评论(2) 收藏 举报 gitcurl ?今天git clone时,出现这个错误. [php] view plaincopy 因为自己的git库上面放了一些数据,所以整个库较大.google了一下,发现是curl的postBuffer 默认值较小的原因,配置下个这个值,就不会出现该错误了.

Difference between git remote add and git clone

http://stackoverflow.com/questions/4855561/difference-between-git-remote-add-and-git-clone git remote add just creates an entry in your git config that specifies a name for a particular URL. You must have an existing git repo to use this. git clone c

痞子衡嵌入式:极精简的Git命令教程(2)- 连接(remote/clone)

今天是Git系列课程第二课,上一课我们已经学会在本地创建一个空repo,痞子衡今天要讲的是如何将本地仓库与远程建立联系. 1.将本地仓库挂上远程git remote 本地建好了仓库,我们希望能够挂到远程服务器上,方便与其他人共享.目前最流行的远程git服务器当然是github,此时你需要在github上注册账户并在线创建一个仓库,此处我们输入仓库名为gittest 点击"Create repository"之后便弹出如下画面,最重要的是我们可以得到一个远程repo的地址:[email 

git clone 报错:fatal: HTTP request failed

git clone https://github.com/xxxx/lilxxy.git Initialized empty Git repository in /tmp/clone123/lxyily/.git/ error: while accessing https://github.com/xxxx/lxyily.git/info/refs fatal: HTTP request failed 这个报错的原因可以能是:1.服务器时间问题2.git 版本问题3.curl版本问题对于3,因为