简体   繁体   中英

Cloning repository from AWS Codecommit

I am currently using SSH Key to clone repository from AWS Codecommit to my local machine. 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

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

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.

This site might help you resolving the issue Git Clone Fails - fatal: The remote end hung up unexpectedly. fatal: early EOF fatal: index-pack failed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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