fatal: unable to access ‘https://github.com/some-repo’: SSL certificate problem: unable to get local issuer certificate

When

Can occur when cloning a repo with HTTPS.

Resolution

Use the -c http.sslVerify=false flag.

git -c http.sslVerify=false clone https://github.com/some-repo

HTTPS redirect on web server

create .htaccess file at public_html root

# WHERE domain = the domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com
RewriteRule ^(.*)$ https://www.domain.com [R,L]
RewriteBase /
</IfModule>