且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

git push 需要很长时间

更新时间:2023-01-15 21:00:11

这可能会发生

  • 如果存储库中有大的未被忽略的文件.
  • 如果 http.postBuffer 的大小非常小.您可以使用 git config --global http.postBuffer 更改大小.这是将数据发布到远程系统时智能 HTTP 传输使用的缓冲区的最大大小(以字节为单位).
  • If there are large unignored files in the repo.
  • If the http.postBuffer size is very less. You can change the size using git config --global http.postBuffer <size>. This is the Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system.

这也可能有帮助,看看它:远程端在 git 克隆时意外挂断

This might also help, have a look at it: The remote end hung up unexpectedly while git cloning