]> sipb.mit.edu Git - ikiwiki.git/blob - doc/rcs/git/gitmanual.mdwn
web commit by http://natalian.org/: cleanup
[ikiwiki.git] / doc / rcs / git / gitmanual.mdwn
1 Main use case I am trying to accomplish: Edit wiki pages offline.
2
3 1. Imagine you're the administrator of the site and you want to checkout the wiki sources to give them some love while on a train journey.
4 2. Or you are writing a complex document and you want to simply use your favourite $EDITOR
5 3. Learn a little more about [git](http://git.or.cz/)
6
7 # Workflow
8
9 ## on webconverger.org aka si.dabase.com aka hendry machine
10
11 Wiki page created with [ikiwiki](http://ikiwiki.info). Example usb.mdwn [usb](http://webconverger.org/usb/)
12
13 ## on monty (my laptop)
14
15     git-clone ssh://si.dabase.com/home/hendry/wikiwc/.git/
16
17 You might want to set some config variables like your email as this [tutorial](http://www.kernel.org/pub/software/scm/git/docs/tutorial.html) describes.
18
19     echo "blah" >> usb.mdwn
20
21 Then to commit:
22
23     git-commit -a -m "added test"
24
25 Send back:
26
27     git push origin
28
29 ## on webconverger.org aka si.dabase.com aka hendry machine
30
31 You should setup the "The git post-update wrapper" in the **ikiwiki.setup** file.
32
33 Then the wiki should be up-to-date! :)
34
35 # Ack
36
37 Thanks to gitte on #git on Freenode and of course joeyh. Have a look at [[rcs/details]].