Skip to content

Instantly share code, notes, and snippets.

@zrt
Created November 10, 2016 00:54
Show Gist options
  • Save zrt/6c693acac42e50031ea338799ba8e010 to your computer and use it in GitHub Desktop.
Save zrt/6c693acac42e50031ea338799ba8e010 to your computer and use it in GitHub Desktop.
import os
now=os.getcwd()
a=os.listdir()
a=list(filter(lambda x:os.path.isdir(x),a))
for s in a:
path=os.path.join(now,s)
os.chdir(path)
if os.path.isdir('.git'):
print('# ./'+s)
os.system('git status')
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment