1. GitHub无法访问的问题
参考 github520 仓库处理。或者直接下载文件:https://raw.hellogithub.com/hosts,进行更新。
2. 提交报错:refusing to allow a Personal Access Token to create or update workflow
因为配置的 Token没有workflow权限,进入到github账号下,进入 setting -> developer settings,找到 personal access tokens,选择使用的token,在Select scopes中找到workflow,选中后保存即可。
3. fatal: unable to access 'https://github.com/xxxxxx.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
git config --global http.version HTTP/1.1
4. Failed to connect to github.com port 443 after xxxx ms: Timed out
已经采用的VPN,浏览器可以上GITHUB,但TortoiseGit 提交时报错。解决方案如下:
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
如果还是不行,针对VPN的,先打开设置(Win+i)--- 网络和Internet ---- 代理,看一下当前代理的端口号。然后进行设置:
git config --global http.proxy 127.0.0.1:<你的端口号>
git config --global https.proxy 127.0.0.1:<你的端口号>
可以通过如下验证:
git config --global -l
如果未使用VPN,则尝试取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy