Use these scripts in a cron job to automatically commit daily to a git repo and create a weekly Git branch.
The following script will commit, pull and push changes when needed. It is used daily, or if wanted hourly.
filename: commit-daily.sh
#!/bin/sh