Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created April 23, 2009 17:41
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 edavis10/100634 to your computer and use it in GitHub Desktop.
Save edavis10/100634 to your computer and use it in GitHub Desktop.
Script to update several git repositories to the latest
#!/usr/bin/env ruby
require 'fileutils'
ROOT = '/home/git/checkouts/*'
Dir[ROOT].each do |path|
FileUtils.cd(path, :verbose => true)
system("git fetch")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment