我的问题是使用了clash代理工具
1、查看代理
git config --global -l
2、移除代理配置
git config --global --unset-all http.proxy
3、更换代理
git config --global http.https://github.com.proxy http://127.0.0.1:7890
git config --global https.https://github.com.proxy https://127.0.0.1:7890