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
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>
git init
git remote add origin https://<<<repo>>>.git
git add .
git commit -m "some comments"
git push -u origin master