Skip to content

Instantly share code, notes, and snippets.

@kuenishi
Created January 14, 2011 06:14
Show Gist options
  • Select an option

  • Save kuenishi/779256 to your computer and use it in GitHub Desktop.

Select an option

Save kuenishi/779256 to your computer and use it in GitHub Desktop.
sync all git dirs
import subprocess
import sys, os
def pull(dir):
print dir, ':'
os.chdir(dir)
subprocess.call(['git', 'pull'])
os.chdir('..')
map(pull, filter(os.path.isdir, os.listdir('.')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment