[英]How to check post buffer size before clone git repository?
When I try to take a clone of the git repository, I get error message当我尝试克隆 git 存储库时,收到错误消息
The remote end hung up unexpectedly while git cloning
远程端在git克隆时意外挂断
I search a bit over it and found solution over here but I would like know what is the current allocation.我搜索了一下并在这里找到了解决方案,但我想知道当前的分配是什么。 So how do I check that?
那么我该如何检查呢?
Run this command in root folder of git repository ( by doing so you will search in ~/.gitconfig
and .git/config
files ):在 git 存储库的根文件夹中运行此命令(这样做您将在
~/.gitconfig
和.git/config
文件中搜索):
git config --get http.postBuffer
If it shows nothing, then used default value ( 1 MiB from git config
documentation ).如果没有显示,则使用默认值(来自
git config
文档的1 MiB)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.