碰到过的git报错及处理方式

前端之家收集整理的这篇文章主要介绍了碰到过的git报错及处理方式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

cannot run .git/hooks/pre-commit: No such file or directory

转到 .git/hooks 目录并删除 pre-commit 文件,因为它试图引用 node_modules/pre-commit/hook 。它应该能解决它。

compression using up to 4 threads.

git push的时候报错:

Failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL,errno 10054
fatal: The remote end hung up unexpectedly
Writing objects: 100% (29/29),2.45 MiB | 1.42 MiB/s,done.
Total 29 (delta 1),reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

有一种可能就是push的文件太大了.
解决办法(设置缓存)

git config http.postBuffer 524288000

猜你在找的Git相关文章