#!/bin/bash GIT_HOME=/var/log find /var/log -iname \*.log | xargs git add git commit -m "daily autocommit" git push --force origin master:logs