Home | Archive

incron line to autocommit files in a repo (in this case the org-notebook):

/home/itihas/org-notebook       IN_CLOSE_WRITE  cd /home/itihas/org-notebook && git add -A && git commit -m "[`hostname`] $#" && git pull --rebase && git push