


If you don’t want to be prompted for the password each time and you don’t mind storing it in plain text, edit following file: % vim ~/. Warning: You appear to have cloned an empty repository.Ĭreate sample file and push it into empty repository: % cd agilesparkleįor the following pushes you can simply use: % git push Restart Apache server $ service apache2 restart Client side This will automatically enable dav module as well: $ a2enmod dav_fsĬonfigure Apache to serve git repository using dav: $ vim /etc/apache2/conf.d/git.confĬopy following inside the newly created file: Ĭreate new file with new user and his password: $ htpasswd -c /etc/apache2/passwd.git myusername Switch to root account so we won’t need to add sudo all the time and install git: $ sudo suĬreate directory for your git repository: $ mkdir -p /var/www/git/agilesparkleĬreate bare git repository inside and set the rights so Apache has write access: $ cd /var/www/git/agilesparkle I assume you have Apache installed already. I hope this will help you to install your desired version of Git. In the above guide, you learned how to install Git on Debian 10 from the repository and compile it from the source. I want it to be password protected but with only single user with following credentials: myusername/mypassword. Now, go to your Debian 10 server, open your terminal and run the following command to download your Git version: wget https. I’m setting it up on my local server 192.168.1.20 under git/agilesparkle, so my repository will be available at. This should work on any recent Ubuntu or Debian release, I’ve tested it on Ubuntu Server 11.10.

This guide will describe how to serve git repository on HTTP port using Apache.
