Created
April 23, 2009 17:41
-
-
Save edavis10/100634 to your computer and use it in GitHub Desktop.
Script to update several git repositories to the latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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