Skip to content

Instantly share code, notes, and snippets.

@RobinWu
Created November 20, 2009 02:54
Show Gist options
  • Save RobinWu/239248 to your computer and use it in GitHub Desktop.
Save RobinWu/239248 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
GITDIR ="/var/cache/git"
Dir.open(GITDIR).each do |d|
next if [".", ".."].include?(d)
`cd #{GITDIR}/#{d} && git pull origin master`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment