Git clone via https with self signed certificate

# Initial clone
# set environment variable GIT_SSL_CAINFO pointing to certificate:
export GIT_SSL_CAINFO=/etc/ssl/certs/rorcz_root_cert.pem
git clone https://repo.or.cz/org-mode.git

# Ensure all future interactions with origin remote also work
cd org-mode
git config http.sslCAInfo /etc/ssl/certs/rorcz_root_cert.pem

Thx to: http://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-...

Tag: