Skip to content

Instantly share code, notes, and snippets.

@0asa
Created January 27, 2015 11:08
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 0asa/120c02a3b6809bf3e638 to your computer and use it in GitHub Desktop.
Save 0asa/120c02a3b6809bf3e638 to your computer and use it in GitHub Desktop.
(naively) `git pull` all repositories found in the current directory.
import os, glob
folders = glob.glob('*')
for folder in folders:
if folder != 'gitall.py':
print ''
print "===="*5 + " " + folder + " " + "===="*5
os.chdir(folder)
os.system('git pull') # or whatever commands...
os.chdir('..')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment