Information Systems



Setting up Git on Apache webdav

This assumes that you have Apache and webdav set up correctly.

Server:

1. Create folder
2. Inside folder:
git --bare init
git update-server-info
3. Outside folder:
chown -R apache folder-name

Client:
1. Create folder
2. Inside folder:

git init
git remote add origin http://<user>@<server name>
3. Add some files
git add .
git commit -a -m “Initial import”
git push origin master