Created
January 27, 2015 11:08
-
-
Save 0asa/120c02a3b6809bf3e638 to your computer and use it in GitHub Desktop.
(naively) `git pull` all repositories found in the current directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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