命令行记录:
PS C:\Users\USER\Documents\Private> git config --global http.postBuffer 524288000
PS C:\Users\USER\Documents\Private> git push --verbose --progress
Pushing to https://github.com/USER/Private.git
Enumerating objects: 52, done.
Counting objects: 100% (52/52), done.
Delta compression using up to 8 threads
Compressing objects: 100% (48/48), done.
Writing objects: 100% (48/48), 19.15 MiB | 9.95 MiB/s, done.
Total 48 (delta 41), reused 0 (delta 0), pack-reused 0
POST git-receive-pack (20079737 bytes)
然后在这步会卡几分钟,之后报错:
error: RPC failed; curl 55 Send failure: Connection was reset
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
PS C:\Users\USER\Documents\Private>
测试了一下网络没啥问题,其他库 push 和 pull 都没问题