本文最后更新于 6 年前,文中所描述的信息可能已发生改变。
git报错信息
Git 中 push 报错
Shell
git push -u origin main
OpenSSL SSL_read: Connection was reset, errno 10054 ...解决方案
邮箱问题
查看用户名,邮箱
Shell
git config user.name
git config user.email修改,用户名,邮箱
Shell
git config --global user.name "xxxx"
git config --global user.email "xxxx"xxxx 改成对应的 用户名 跟 邮箱
移除仓库,重新添加
Shell
git remote rm origin
git remote add origin https://github.com/xxxx解除SSL认证
cmd 窗口输入
Shell
git config --global http.sslVerify "false"更新 DNS 缓存
cmd 窗口输入
Shell
ipconfig /flushdns文件过大,超过上限
修改为 500MB,cmd 窗口输入
Shell
git config http.postBuffer 5242880003