简体   繁体   English

来自 AWS Codecommit 的克隆存储库

[英]Cloning repository from AWS Codecommit

I am currently using SSH Key to clone repository from AWS Codecommit to my local machine.我目前正在使用 SSH 密钥将存储库从 AWS Codecommit 克隆到我的本地机器。 My我的

ssh git-codecommit.us-east-2.amazonaws.com

has successfully connected.已成功连接。

My problem is that when I run this:我的问题是,当我运行这个:

git clone ssh://git-codecommit.us-east-2.amazonaws.com.amazonaws.com/v1/repos/Project

it is cloning my project but after 100% of cloning, I keep getting this error它正在克隆我的项目,但在 100% 克隆后,我不断收到此错误

remote: Counting objects: 1024, done.
client_loop: send disconnect: Connection reset by peer KiB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I cannot find answers around google and hoping that someone will help me with this.我在谷歌上找不到答案,希望有人能帮我解决这个问题。 What is the possible causes of these error?这些错误的可能原因是什么? Thank you in advance!先感谢您!

Try increasing the buffer尝试增加缓冲区

git config --global ssh.postBuffer 1048576000

If it doesn't work then use TortoiseGit software, It helped me when I faced the same problem like yours如果它不起作用,那么使用TortoiseGit软件,当我遇到和你一样的问题时它帮助了我

Thanks everyone!谢谢大家! its working now.它现在工作。 Increasing postbuffer did a lot of help but in my case that is not the reason why its working.增加后缓冲做了很多帮助,但在我的情况下,这不是它工作的原因。 You guys should check your firewall, vpn connection or your network for their security purposes.为了安全起见,你们应该检查防火墙、VPN 连接或网络。

This site might help you resolving the issue Git Clone Fails - fatal: The remote end hung up unexpectedly.该站点可能会帮助您解决Git Clone Fails - 致命问题:远程端意外挂断。 fatal: early EOF fatal: index-pack failed 致命:早期 EOF 致命:索引包失败

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM