Skip to content

Instantly share code, notes, and snippets.

@DimaSamodurov
Created December 12, 2014 16:36
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 DimaSamodurov/668d435ccda2abf7680f to your computer and use it in GitHub Desktop.
Save DimaSamodurov/668d435ccda2abf7680f to your computer and use it in GitHub Desktop.
Dir['*/'].each do |dir|
root = File.dirname __FILE__
cmd = "cd #{root}/#{dir} && git pull"
puts cmd
`#{cmd}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment