Skip to main content
  1. Posts/

[Git] Deleting all Branches but master

·27 words·1 min

In order to delete all branches but master simply run the following command:

git checkout master
git branch | grep -v '^*' | xargs git branch -d