I've been running this for about 15 years now:
ddiederi@ddiederi-mac notes % while [ 1 ]
do
git add -A .
git commit -am wip;git push;git pull
sleep 6
done