사내망처럼 프록시를 거치거나 자체 CA 로 서명한 인증서를 쓰는 Git 서버에 HTTPS 로 붙을 때 필요한 설정이다. 모두 git config --global 로 ~/.gitconfig 에 기록한다. 기본 사용자 설정은 Git 을 볼 것.
git config --list
git config --global http.proxy http://proxy.server.host:80
git config --global https.proxy http://proxy.server.host:80
특정 원격만 프록시를 타지 않게 하려면 원격 URL 별로 http.<url>.proxy 를 비워 둔다.
git config --global http.https://git.internal.example.com.proxy ""
자체 CA 인증서(PEM)를 신뢰 목록으로 지정한다.
git config --global http.sslcainfo /cert/key/path/cert.key.file.crt
임시로 검증을 끄고 싶을 때만 http.sslVerify=false 를 쓴다. 중간자 공격에 노출되므로 상시 설정으로 두지 않는다.
git -c http.sslVerify=false clone https://git.internal.example.com/user/project.git