Hi all.
I have been experimenting with using Git to keep a history of every change that I make to my single-file wiki. I have a program monitoring the file which runs the following script whenever the file changes:
cd C:\files\wiki\wiki.html
git add .
git commit -am "Autobackup %date% %time%"
I like the idea of being able to jump back and experiment with earlier versions of my wiki. I also like being able to undo recent changes when I make an error.
But I don’t really know much about Git, and I’m concerned that I might be misusing it.
Is there a reason that this is a terrible idea? Perhaps there is a more sensible approach I could adopt?
Thanks for your help!