Skip to content

Instantly share code, notes, and snippets.

@hitode909
Created October 19, 2009 16:20
Show Gist options
  • Save hitode909/213493 to your computer and use it in GitHub Desktop.
Save hitode909/213493 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "ruby-growl"
if `git log --pretty=oneline origin..HEAD 2> /dev/null`.length > 0
growl = Growl.new "127.0.0.1", "git-reminder", ["message"]
growl.notify "message", "Git Reminder", "#{File.basename(Dir.pwd)} has local commit."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment