diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index 0153749..dc7067c 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -85,6 +85,17 @@ customCommands: description: "prune deleted remote branches" ``` +## Pruning merged local branches + +```yml +customCommands: + - key: "b" + command: "git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d" + context: "localBranches" + loadingText: "Pruning..." + description: "prune local branches that have been merged to master" +``` + ## committing via Commitizen (git cz) ```yml