-
Create ssh key and add the public key to your github repository
ssh-keygen -t rsa
-
Create a script to commit changes and push it to the remote github server. You can add a commit message as this script's parameter or you can use the default message.
#!/bin/bash
MESSAGE="Update"
if [ $# -eq 0 ]
then
echo "No arguments supplied"
else
MESSAGE=$1
fi
cd /data/myFiles/github/TIL/
git add . && git commit -m $MESSAGE && git push origin master