Difference between revisions of "Git over https"
From Tech
Jump to navigationJump to search (Created page with "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/sitenam...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 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 |
||
+ | 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)): |
||
Line 11: | Line 17: | ||
git remote add lokaal "https://joosteto@ubuntu/git" |
git remote add lokaal "https://joosteto@ubuntu/git" |
||
git push --set-upstream lokaal master |
git push --set-upstream lokaal master |
||
+ | |||
+ | git remote add pomo "https://joosteto@git.komputilo.org/tst" |
||
+ | git push --set-upstream pomo master |
Latest revision as of 22:56, 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
git remote add pomo "https://joosteto@git.komputilo.org/tst" git push --set-upstream pomo master