Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I resolve "Recv failure: Connection reset by peer" error

I'm trying $ git pull or $ git fetch command on myRepo gives me error but myTestRepo works fine.

Commands give me that error.

Fetching origin
fatal: unable to access 'http://mysite/myPath/myRepo.git/': Recv failure: Connection reset by peer
error: Could not fetch origin

I tried git $ git fetch -p and $ git fetch -p --all -f command, they worked one or two times after that that commands give the same error.

like image 264
Samet ÇELİKBIÇAK Avatar asked Dec 30 '25 11:12

Samet ÇELİKBIÇAK


1 Answers

I was using http connection, I changed my connection to ssh instead of http and the problem was solved

like image 131
Samet ÇELİKBIÇAK Avatar answered Jan 02 '26 05:01

Samet ÇELİKBIÇAK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!