fatal: unable to access ‘https Recv failure Connection was reset

Time:2024-3-13

This error is often encountered when using git:fatal: unable to access 'https://github.com/.../.git':Recv failure Connection was reset

Combined with my personal experience of recent use, I offer two methods that have been personally tested to be effective.

Method 1

This method is also the most common method, which is executed in the terminal:

git config --global --unset http.proxy 
git config --global --unset https.proxy

Method 2

I have used git before, some times using method 1 can solve the problem, some times will still report errors, the following method, can perfectly solve the error.

System Settings Search Agent and click the Edit button:
fatal: unable to access 'https Recv failure Connection was reset

Open the proxy server with the port set to7890This has no effect on your normal internet access, so feel free to set it up. Then click Save.

fatal: unable to access 'https Recv failure Connection was reset

Then enter the command in the terminal:

git config --global http.proxy http://127.0.0.1:7890

This will be a great success. This can be done by typing in the terminalgit config --global -lAdd to check if the setting is successful:

fatal: unable to access 'https Recv failure Connection was reset

Once you’re done, you’ll be able to use git happily!

Recommended Today

[linux] Permission Understanding

catalogs 1. shell commands and how they work 2. The concept of authority 3. Authority management 2.1 Classification of document visitors (persons) 2.2 File types and access rights (thing attributes) 2.3 Representation of file permission values 2.4 Methods for setting file access rights 3. The file directive 4. Permissions for directories★ 5. Sticky bits★ 6. […]