我们在使用 Git 上传文件到 GitHub 仓库时,经常会出现连接超时、连接已重置等错误,这种情况,我们可以通过设置代理来解决。

git config --global http.proxy IP:PORT
git config --global https.proxy IP:PORT