Skip to content

Instantly share code, notes, and snippets.

@trey
Forked from defunkt/backup.rb
Created May 6, 2009 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trey/107713 to your computer and use it in GitHub Desktop.
Save trey/107713 to your computer and use it in GitHub Desktop.
Use this to automatically save your writing to a Git repository
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment