From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
-
Switch to the main branch, usually 'develop':
git checkout develop
-
Get a list of fully merged branches:
""" | |
removes all empty folders recursively in a directory | |
""" | |
import os | |
import sys | |
def delete_if_empty(path): | |
if not os.path.isdir(path): | |
return False |
class SomeProcess(): | |
def do_it(self): | |
self.before_doing_it() | |
# actually do it | |
# much stuff to be done | |
self.after_doing_it() | |
def before_doing_it(self): |
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches: