View on GitHub

notes

A collection of my TIL notes and commonplace book entries.

Delete All Local Branches

$ git branch | grep -v "master" | xargs git branch -D 

Source: https://coderwall.com/p/x3jmig/remove-all-your-local-git-branches-but-keep-master