aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/setup_a_public_repository_on_a_web_site.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-27 18:39:45 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-27 18:39:45 -0400
commite90e6f451b7ff77bfcc51175e7514ba6dde9dd30 (patch)
tree8ab0408f1859673c71e3a47f8cd40c9357b6b55a /doc/tips/setup_a_public_repository_on_a_web_site.mdwn
parent99106e325f5a738a728ab5b80215db129feddca2 (diff)
add a tip
Diffstat (limited to 'doc/tips/setup_a_public_repository_on_a_web_site.mdwn')
-rw-r--r--doc/tips/setup_a_public_repository_on_a_web_site.mdwn26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/tips/setup_a_public_repository_on_a_web_site.mdwn b/doc/tips/setup_a_public_repository_on_a_web_site.mdwn
new file mode 100644
index 000000000..bebd56ce4
--- /dev/null
+++ b/doc/tips/setup_a_public_repository_on_a_web_site.mdwn
@@ -0,0 +1,26 @@
+Let's say you want to distribute some big files to the whole world.
+You can of course, just drop them onto a website. But perhaps you'd like to
+use git-annex to manage those files. And as an added bonus, why not let
+anyone in the world clone your site and use `git-annex get`!
+
+My site like this is [http://downloads.kitenet.net](downloads.kitenet.net).
+Here's how I set it up. --[[Joey]]
+
+1. Set up a web site. I used Apache, and configured it to follow symlinks.
+ `Options FollowSymLinks`
+2. Put some files on the website. Make sure it works.
+4. `git init; git annex init`
+3. We want users to be able to clone the git repository over http, because
+ git-annex can download files from it over http as well. For this to
+ work, `git update-server-info` needs to get run after commits. So
+ put it in the git `post-update` hook.
+5. `git annex add; git commit -m added`
+6. Instruct users to clone a http url that ends with the "/.git/"
+ directory. For example, for downloads.kitenet.net, the clone url
+ is `http://downloads.kitenet.net/.git/`
+
+When users clone over http, and run git-annex, it will
+automatically learn all about your repository and be able to download files
+right out of it, also using http.
+
+Enjoy!