Skip to content

Instantly share code, notes, and snippets.

@raed667
Last active January 6, 2017 21:39
Show Gist options
  • Save raed667/11956bae08bc26e92d1ae383c7046dec to your computer and use it in GitHub Desktop.
Save raed667/11956bae08bc26e92d1ae383c7046dec to your computer and use it in GitHub Desktop.
#!/bin/bash
timestamp() {
date +"%T"
}
if (( RANDOM % 2 ))
then
cd /path/to/directory/
timestamp
timestamp >> gitClock.txt
eval `ssh-agent -s`
ssh-add /home/r3d/.ssh/github
git add -A
git commit -m $(timestamp)
git push -u origin master
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment