Git over https
From Tech
Jump to navigationJump to searchGit over https:
- Enable ssl:https://www.rosehosting.com/blog/how-to-enable-https-protocol-with-apache-2-on-ubuntu-20-04
- Adjustments to /etc/apache2/sites-available/sitename.conf: https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP
- In /srv/git:
mkdir -p /srv/git chown www-data:www-data /srv/git sudo -u www-data cd /srv/git htpasswd -c .htpasswd joosteto mkdir tst cd tst git init --bare
- In het lokale archief (b.v. $(HOME)):
mkdir tst cd tst git remote add lokaal "https://joosteto@ubuntu/git" git push --set-upstream lokaal master