在git clone报错

在阿里云新买了一台服务器,用的原正常运行的系统做的镜像文件,但在拉代码的时候提示如下报错:
[[email protected] ]# git clone [email protected]:java/psd.git
Cloning into ‘psd‘...
ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

处理方案:
想起自己在gitlab服务器有设置了IP访问。开启了/etc/hosts.all。把新IP添加到hosts文件里即可,

原文地址:http://blog.51cto.com/cainiaibage/2336570

时间: 2024-07-30 14:28:28

在git clone报错的相关文章

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,因为

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报错SSL certificate problem

Git新手一枚,今天进行git clone操作时发生如下问题:提示无效的链接 error: SSL certificate problem: Invalid certificate chain while accessing https://githib.com/...XXXX.git fatal: HTTP request failed 解决方法也很简单,一条命令就搞定了: git config --global http.sslVerify false  

git clone报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining

具体错误信息如下图: error: RPC failed; curl 18 transfer closed with outstanding read data remaining    fatal: The remote end hung up unexpectedly    fatal: early EOF    fatal: index-pack failed 这个错误产生的原因是时间太久,资源太大. 基于此,第一种考量即扩大缓存区.即在命令行输入:         git config 

git clone 报错 sign_and_send_pubkey: signing failed: agent refused operation Permission denied (publickey).

这个是我遇到的问题,一开始我以为是我的ssh公钥失效了,为了验证这一想法,我反复的将公钥创建 了N次,却依旧无法解决问题.于是,我就开始怀疑自己是否某些关键性的配置配置错误,或者粗心导致的,反复检查后发现自己没有问题.ok,下面是解决的办法: 在你的ternimal下执行该命令 ssh-agent -s 然后再执行下面的命令 ssh-add 参考:https://blog.csdn.net/StudyLww/article/details/90750158 原文地址:https://www.cn

<问题解决02>Linux虚拟机使用git push报错--解决方案如下:

问题描述: 使用git push 报错: error: The requested URL returned error: 403 Forbidden while accessing https://github.com/Newlyfly/Hello_World.git/info/refs fatal: HTTP request failed 解决方案: 解决方案来源博客地址:http://blog.csdn.net/happyteafriends/article/details/1155404

git push报错error: failed to push some refs to '[email protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

git clone时报错Permission denied (publickey)

一.使用ssh方式从github上git clone时报错Permission denied (publickey)解决方法:1.ssh-keygen -t rsa 该命令产生一个公钥文件和一个私钥文件,centos系统下默认放在~/.ssh/目录下 2.将公钥文件id_isa.pub里面的文件复制到github设置ssh key的地方 3.此时git clone应该就会成功了 4.如果还不行,试试以下命令,告诉系统去哪里找私钥eval 'ssh-agent'ssh-agent ~/.ssh/i

git checkout 报错 refname 'origin/branch-name' is ambiguous

When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file. 执行 rm .git/refs/heads/origin/分支名 再checkout git checkout 报错 refname 'origin/branch-name' is ambiguous 原文地址:https://www.cnblogs.com/cheng6018/p/847