Git
Set the editor¶
git config --global core.editor "vim"
Delete all local branches¶
git branch --merged | grep -v \* | xargs git branch -D
Delete all branches except a few¶
git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
Delete a remote branch¶
git push origin :develop