Skip to content

Instantly share code, notes, and snippets.

@mericson
Created August 1, 2013 00:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mericson/6127374 to your computer and use it in GitHub Desktop.
Save mericson/6127374 to your computer and use it in GitHub Desktop.
git-go (stolen, with minor tweaks, from @jashkenas)
#!/usr/bin/env ruby
cmds = []
cmds << "git add ."
cmds << "git add -u"
cmds << "git commit -m \"#{ARGV.join(' ')}\""
cmds << "git pull"
cmds << "git push"
system cmds.join("&&")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment