Git 常见问题处理
Push failed: Unable to access 'https://github.com/financialfly/lzz.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
因为 Git 的 Http 代理的问题,Git 支持三种协议:git: //、ssh: //和 http: //,本来 push 的时候应该走 ssh 隧道的,但是因为设置了 http 代理,所以就走了 http 的代理,于是就提交不了了。
解决办法:取消 HTTP 代理。在项目根目录下打开 git bash,输入以下指令后重新提交即可。
git config --global --unset http.proxy
unable to access 'https://github.com/longygo/gyy.git/': Failed to connect to github.com port 443: Timed out
使 git 走梯子通道:
git config --global http.proxy "socks5://127.0.0.1:10809"
git config --global https.proxy "socks5://127.0.0.1:10809"
取消:
git config --global --unset http.proxy
git config --global --unset https.proxy
撤销修改(checkout)时遇到 unmerged 错误
如果想要放弃修改内容,可以使用:
git reset first_Name.txt
git checkout first_Name.txt

浙公网安备 33010602011771号