Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | Github | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | 打赏(Donations) | About
知乎专栏多维度架构

11.8. git config

11.8.1. core.sshCommand

git 默认使用 id_rsa,指定私钥方法是:

			
git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null"
git pull
git push
			
			

			
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_example -F /dev/null" git clone git@github.com:netkiller/netkiller.github.io.git		
			
			
11.8.2. fatal: The remote end hung up unexpectedly
error: RPC failed; result=22, HTTP code = 413 | 18.24 MiB/s
fatal: The remote end hung up unexpectedly
			
git config http.postBuffer 524288000
			
11.8.3. 忽略 SSL 检查

使用自颁发 ssl 证书时需要开启,否则无法 clone 和 push

			
export GIT_SSL_NO_VERIFY=true			
			
			

			
git config http.sslVerify "false"