Skip to content

Instantly share code, notes, and snippets.

@eka
Created October 17, 2013 16:04
Show Gist options
  • Save eka/7027609 to your computer and use it in GitHub Desktop.
Save eka/7027609 to your computer and use it in GitHub Desktop.
dirs = Dir['./*']
original_dir = __dir__
dirs.each do |dir|
begin
Dir.chdir(dir)
rescue
puts "couldn't change to #{dir}"
end
`git pull`
Dir.chdir(original_dir)
end
@j-e-d
Copy link

j-e-d commented Oct 17, 2013

If you install them as submodules you can update them with:

git submodule foreach git pull origin master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment