From: Joey Hess Date: Wed, 5 Mar 2008 19:55:51 +0000 (-0500) Subject: web commit by ManojSrivastava X-Git-Tag: 2.41~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c776d65a37065bb699784d30a18d55456f3e2ae;p=ikiwiki.git web commit by ManojSrivastava --- diff --git a/doc/rcs/git.mdwn b/doc/rcs/git.mdwn index c02189cdd..e90aa2432 100644 --- a/doc/rcs/git.mdwn +++ b/doc/rcs/git.mdwn @@ -52,17 +52,18 @@ Instead, clone the bare repository as mentioned above, and push **only** to the The ikiwiki `post-commit` hook should be put in the bare repository. -### Nine steps to get rich using git as your ikiwiki SCM +### Ten steps to get rich using git as your ikiwiki SCM 1. `mkdir -p /path/to/repository && cd /path/to/repository` 2. `git --bare init --shared` 3. `mkdir -p /path/to/clone0 && cd /path/to/clone0` 4. `git clone /path/to/repository` 5. `echo /.ikiwiki > .gitignore` -6. `git add .gitignore` -7. Now, populate your wiki. You could us `cp` to copy over files, use you favourite editor to create files and `git add` them, or you could import a wiki repository from another VCS using `git-svnimport`, `git-archimport`, or `git-cvsimport`. Make sure the permissions are correct in order for [[cgi]] to commit here (consider actually cloning another reposotory for yourself, on this or on another machine). Use `git add` to add these files to the index. -8. `git push` -9. Profit. +6. `echo recentchanges >> .gitignore` +7. `git add .gitignore` +8. Now, populate your wiki. You could us `cp` to copy over files, use you favourite editor to create files and `git add` them, or you could import a wiki repository from another VCS using `git-svnimport`, `git-archimport`, or `git-cvsimport`. Make sure the permissions are correct in order for [[cgi]] to commit here (consider actually cloning another reposotory for yourself, on this or on another machine). Use `git add` to add these files to the index. +9. `git push` +10. Profit. [[ikiwiki-makerepo]] can automate setting this up for the common case where there is no pre-existing wiki.