From 603ddedad7de60da4c251ad8956cabed31ab4f43 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 18 Apr 2022 11:42:44 +1000 Subject: [PATCH] Updated Custom Commands Compendium (markdown) --- Custom-Commands-Compendium.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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