报错信息:
Cloning into 'ReidSystem'...
fatal: unable to access 'https://github/Qi5Lei/ReidSystem.git/': Failed to connect to 127.0.0.1 port 33210 after 2062 ms: Could not connect to server
解决方法:
1. 检查 Git 代理设置
可能是 Git 配置了本地代理,导致访问 GitHub 的请求被重定向到 127.0.0.1。可以通过以下命令检查和移除代理:
# 检查代理设置
git config --global --get http.proxy
git config --global --get https.proxy
# 移除代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy
2. 尝试直接连接 GitHub(不用代理)
运行完以上命令后,再次尝试克隆仓库:
git clone https://github/Qi5Lei/ReidSystem.git
报错信息:
Cloning into 'ReidSystem'...
fatal: unable to access 'https://github/Qi5Lei/ReidSystem.git/': Failed to connect to 127.0.0.1 port 33210 after 2062 ms: Could not connect to server
解决方法:
1. 检查 Git 代理设置
可能是 Git 配置了本地代理,导致访问 GitHub 的请求被重定向到 127.0.0.1。可以通过以下命令检查和移除代理:
# 检查代理设置
git config --global --get http.proxy
git config --global --get https.proxy
# 移除代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy
2. 尝试直接连接 GitHub(不用代理)
运行完以上命令后,再次尝试克隆仓库:
git clone https://github/Qi5Lei/ReidSystem.git