如何在克隆 git 存储库之前检查后缓冲区大小?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32137388/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to check post buffer size before clone git repository?
提问by Virat Gaywala - CSM
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 cloning 远程端意外挂断
I search a bit over it and found solution over herebut I would like know what is the current allocation. So how do I check that?
我搜索了一下并在这里找到了解决方案,但我想知道当前的分配是什么。那么我该如何检查呢?
回答by Roman Zaitsev
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 )。