fatal: unable to access 'https://github.com/.git/': Failed to connect to github.com port 443 after 21059 ms: Timed out
时间: 2023-11-08 09:56:17 浏览: 95
该报错通常是由于无法连接到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/lwmlouis/AVSpeech.git/': Failed to connect to github.com port 443: Timed out
根据提供的引用内容,出现"fatal: unable to access 'https://github.com/lwmlouis/AVSpeech.git/': Failed to connect to github.com port 443: Timed out"错误是由于连接超时导致的。这可能是由于网络问题或防火墙设置引起的。***com。你可以尝试使用其他网络或者使用ping命令来测试网络连接是否正常。
2. 检查防火墙设置:如果你使用的是公司或学校的网络,可能存在防火墙设置限制对github.com的访问。你可以联系网络管理员或尝试使用代理服务器来解决这个问题。***使用SSH协议可以避免使用HTTPS协议时的一些网络限制。
4. 更改git配置:你可以尝试更改git的配置,将git的访问方式从HTTPS改为SSH。你可以使用以下命令来更改git的配置:
```shell
git config --global url."git@github.com:".insteadOf "https://github.com/"
```
这些方法中的任何一种都可能解决你遇到的问题。如果问题仍然存在,请尝试联系网络管理员或github支持团队以获取更多帮助。
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.