Autocommit in a git repository when a file has been changed