Sample Header Ad - 728x90

Why do I need 3 git repositories for ikiwiki if I want to commit locally

1 vote
2 answers
307 views
If I have a local ikiwiki on my laptop I need a "repository" directory (mywiki.git - a bare repository), a "scrdir" (myiki a git repository) and a place where the produced html files go ("destdir") to run it properly from a web browser locally. However if I also want to work with a text editor and git on the command line I need to setup a third git repository say mywiki.local ("working clone"). Which puhes to mywiki.git which in turn triggers a post-update hook to push to the scrdir and rebuild the html pages, as illustrated in the following picture: Workflow With this approach, I need **three** almost identical directories on my laptop just to run one wiki, i.e. it occupies three times the disk space instead of just once. What is the reason behind this? Is there a safe way to circumvent this if you are just working on one machine, to reduce it to just two or even better one directory?
Asked by student (18865 rep)
Jun 10, 2014, 08:56 PM
Last activity: Jun 30, 2016, 10:08 AM