From 22d087fd3e7ce3e48c980859bd9376989b7f70bd Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Wed, 15 Apr 2020 14:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=A2=9E=E5=A4=A7=20postBuff?= =?UTF-8?q?er=20=E7=9A=84=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Git/Git_使用说明.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Software/Applications/Git/Git_使用说明.md b/Software/Applications/Git/Git_使用说明.md index 93d26ca..4f5b670 100644 --- a/Software/Applications/Git/Git_使用说明.md +++ b/Software/Applications/Git/Git_使用说明.md @@ -24,6 +24,12 @@ git 访问某些 https 连接会出现 SSL 认证错误,此时可通过全局 git config --global http.sslVerify "false" ``` +克隆比较大的项目时容易出现 RPC failed,通过将 postBuffer 设置大些以解决此问题: + +```sh +git config --global http.postBuffer 524288000 +``` + ### Git 与 SSH 如果想访问远程 Git 服务器,则最好通过 SSH 方式。这需要先生成 RSA 密钥,然后将公钥部署到远程服务器上即可。生成 RSA 密钥可使用 OpenSSH,命令如下(Windows 下该命令位于 /\/usr/bin/ 下,可使用 Git Bash 直接访问):