Git over https: Difference between revisions

From Tech
Jump to navigationJump to search
Content deleted Content added
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..."
 
No edit summary
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:

sudo -u www-data
mkdir tst
mkdir tst
git init --bare
git init --bare

Revision as of 21:38, 27 November 2022

Git over https:

sudo -u www-data
mkdir 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