Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | 云栖社区 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Github | Search | About

5.6. git config

5.6.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		
			
			

5.6.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
			

5.6.3. 忽略 SSL 检查

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

			
export GIT_SSL_NO_VERIFY=true			
			
			

			
git config http.sslVerify "false"