Skip to content

Instantly share code, notes, and snippets.

@harshays
harshays / allstatus.py
Last active August 29, 2015 14:19
Clean up your github directory
'''
Snippet to interactively view statuses and enter commands of all repositories in a Github folder
purpose is to clean up any lingering modifications/added files yet to be committed
'''
import os
dirname = os.path.dirname(os.path.realpath(__file__))
folders = list(os.walk(dirname))[0][1]
folderspath = [os.path.join(dirname, f) for f in folders if not f.startswith(".")]
for folder in folderspath: