Difference between revisions of "Git over https"
From Tech
Jump to navigationJump to searchLine 4: | Line 4: | ||
* Adjustments to /etc/apache2/sites-available/sitename.conf: https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP |
* Adjustments to /etc/apache2/sites-available/sitename.conf: https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP |
||
* In /srv/git: |
* In /srv/git: |
||
+ | mkdir -p /srv/git |
||
− | |||
+ | chown www-data:www-data /srv/git |
||
sudo -u www-data |
sudo -u www-data |
||
+ | cd /srv/git |
||
+ | htpasswd -c .htpasswd joosteto |
||
mkdir tst |
mkdir tst |
||
+ | cd tst |
||
git init --bare |
git init --bare |
||
* In het lokale archief (b.v. $(HOME)): |
* In het lokale archief (b.v. $(HOME)): |
Revision as of 22:49, 27 November 2022
Git 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