git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
问题得到解决
取消代理 取消全局代理:
git config http.sslVerify "false"
git config --global http.sslVerify "false"
git config --global --unset http.proxy
git config --global --unset https.proxy
我也记不清到底是第几次处理这种问题了
failed to connect to github.com port 443
解决方案:先把子切换到全局,然后再取消,接着取消全局代理,最后git pull或者git push
问题的原因到底是啥呢?
时隔多年(2021年3月15日15:19:34),又遇到了这个问题:
(1)取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
(2)获得成功!
问题2:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/liushuan/RK3399.git/'
该问题是 token失效,需要重新到github申请token,push代码 输入密码时替换成token 就行了。
申请token地址:
https://github.com/settings/tokens?page=1