Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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