Listing branches by most recent commit:
git for-each-ref --sort=-committerdate refs/heads/
Listing branches not yet merged:
git branch --no-merged <BRANCH_NAME>
Remove a file from version control without deleting it:
git rm --cached <SOME_FILE>
Removing a file from history:
git filter-branch --tree-filter 'rm -rf <SOME_FILE>' HEAD