亲测有效的方法
1、使用代理加速
通过以下3个网址均可进入github首页。
raw.githubusercontent.com , gist.github.com , gist.githubusercontent.com
clone时使用以下地址:
https://ghproxy.com/{实际github的域名}
如:https://ghproxy.com/https://github.com/mountainest/notes.git
2、将github迁到码云,然后往github同步代码。
查看账号配置
1、查看.gitconfig文件
2、使用命令
# 查看配置
git config --global --list
注:github支持自动获取授权账号给git,无需配置。