Skip to content

Instantly share code, notes, and snippets.

@skylerto
Created September 19, 2016 16:46
Show Gist options
  • Save skylerto/20483284d5cd086a6742c744b1977d4b to your computer and use it in GitHub Desktop.
Save skylerto/20483284d5cd086a6742c744b1977d4b to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
num_secs = 15 * 60
message = "AUTO COMMIT"
while true
sleep(num_secs)
puts "executing auto-commit"
commit = %(git commit -vm #{message})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment