This gist shows the steps to automatically git commit changes under a folder of interest to your github.
Create a repo on github for the folder of interest and intialize the folder as a git repo by git init
Create a subfolder (say scripts) and download the aut-commit.sh to that folder.
cd /path/to/the/folder/of/interest