Skip to content

Instantly share code, notes, and snippets.

@gildo
Created December 7, 2010 21:46
Show Gist options
  • Save gildo/732478 to your computer and use it in GitHub Desktop.
Save gildo/732478 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
abort("Enter a valid dir in ARGV")if ARGV[0].nil?
Dir["#{ARGV[0]}/*"].each{|d|Dir.chdir(d);puts"\npulling #{Dir.pwd.split("/").last}"
system("git pull");Dir.chdir("../")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment