fatal: unable to access 'https://github.com/.git/': Failed to connect to github.com port 443 after 21059 ms: Timed out
时间: 2023-11-08 15:56:17 浏览: 658
该报错通常是由于无法连接到github.com导致的。可能的原因有两个:
1. DNS解析出现问题。可以在cmd窗口中输入"ipconfig/flushdns",清除缓存后重新进行git操作。
2. 防火墙或代理设置。可以取消代理设置,输入以下命令:
git config --global --unset http.proxy
git config --global --unset https.proxy
回答完问题后的
相关问题
fatal: unable to access 'https://github.com/rogersce/cnpy.git/': Failed to connect to github.com port 443 after 21096 ms: Timed out
This error message indicates that the Git client was unable to connect to the GitHub server at the specified URL. The error "Failed to connect to github.com port 443" suggests that the connection was blocked or refused by the server, possibly due to a network issue or a firewall blocking the connection. The "Timed out after 21096 ms" message implies that the connection attempt took too long and the server timed out waiting for a response.
To fix this issue, you can try the following:
1. Check your internet connection: Ensure that your internet connection is stable and working properly.
2. Check your firewall settings: If you have a firewall enabled, make sure that it is not blocking the connection to GitHub. You may need to add an exception for Git in your firewall settings.
3. Try a different network: If the issue persists, try connecting from a different network, such as a different Wi-Fi network or a cellular data network.
4. Check if GitHub is down: Sometimes, GitHub may experience downtime or maintenance, causing connection issues. You can check the GitHub status page to see if there are any reported issues.
5. Use SSH instead of HTTPS: If you continue to have trouble connecting via HTTPS, you can try using SSH instead. You'll need to generate an SSH key and add it to your GitHub account. Then, you can use the SSH URL instead of the HTTPS URL to clone the repository.
fatal: unable to access 'https://github.com/achanghello/ac-ui.git/': Failed to connect to github.com port 443 after 21104 ms: Timed out
This error message indicates that the Git client is unable to connect to the GitHub server. The most likely cause of this error is a network issue, such as a firewall or proxy server blocking the connection. To resolve this issue, try the following:
1. Check your network connection to ensure that you are connected to the internet.
2. Disable any firewall or antivirus software that might be blocking the connection.
3. If you are behind a proxy server, configure Git to use the proxy by running the following command in your terminal:
```
git config --global https.proxy http://proxy.example.com:8080
```
Replace `proxy.example.com` with the hostname of your proxy server and `8080` with the port number.
4. Try cloning the repository again after waiting for some time, as there might be a temporary issue with the GitHub server.
If none of these solutions work, you can try contacting your network administrator or GitHub support for further assistance.
阅读全文