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 |
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: