➜ git push -u origin main
Enumerating objects: 149, done.
Counting objects: 100% (149/149), done.
Delta compression using up to 12 threads
Compressing objects: 100% (126/126), done.
Connection to github.com closed by remote host.
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
尝试搜索这个错误说是需要设置 postbuffer 的大小,是没有效果的
只要关闭了代理就可以正确上传,使用http方式git仓库是一样的错误。
自定义规则中将github的地址强制走了代理。