0 20 * * 0 /path_to_script
That will run the command specified (replace
/path_to_script') at 20:00 local time every Sunday. The syntax for cron jobs is fairly simple, and there's a slick tool that will help you create them without remembering the code positions.
In this case, the command should be a script that runs the commit for you. I think it would be easiest in your case to write a quick shell script to change to the clone directory and then run the commit. Create a file at
~/commit.sh and put this in it (replacing
/location/of/clone, of course)
git-commit -m "commit message, to avoid being prompted interactively"
chmod +x ~/commit.sh to make it executable, and have the cron job run that (referring to it by it's full path, rather than using