I've created a git + hooks + webservice setup so I can edit from anywhere with an editor and access to git, using a howto called A web-focused Git workflow by Joe Maller. I needed to configure some global settings in the Main git to prevent is from yelling about merge handling, but that was it.

I run the following build.sh script, which takes care of everything for me. I also added a .gitignore for vim temp files, just to be sure.

#!/usr/bin/env bash

set -e
set -u

mdfiles=(*\.md)
for mdfile in ${mdfiles[*]};
do
    mdfile="$(basename -- "${mdfile}")"
    mdbase="${mdfile%.*}"
    echo "processing ${mdfile} ..."
    pandoc -V --highlight-style=zenburn -i "${mdfile}" -s -o "${mdbase}.html"

done

git add .
git commit -m "autobuild commit"
git push

source: web-git.md

bash source: build.sh