From fe427d4e77b2b816029e288d37e2383d11fa6555 Mon Sep 17 00:00:00 2001 From: Tommaso Panozzo <8103786+tom139@users.noreply.github.com> Date: Tue, 16 Feb 2021 09:11:48 +0100 Subject: [PATCH] fix: update alias of gbda to assure readers their main branch won't be deleted --- Cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cheatsheet.md b/Cheatsheet.md index e4eca93..10dc400 100644 --- a/Cheatsheet.md +++ b/Cheatsheet.md @@ -82,7 +82,7 @@ See `~/.oh-my-zsh/lib/directories.zsh` | _gb_ | git branch | | _gba_ | git branch -a | | _gbd_ | git branch -d | -| _gbda_ | git branch --no-color --merged \| command grep -vE "^(\\+\|\\\*\|\\s\*(master\|develop\|dev)\\s*$)" \| command xargs -n 1 git branch -d | +| _gbda_ | git branch --no-color --merged \| command grep -vE "^(\+\|\*\|\s*($(git_main_branch)\|development\|develop\|devel\|dev)\s*$)" \| command xargs -n 1 git branch -d | | _gbl_ | git blame -b -w | | _gbnm_ | git branch --no-merged | | _gbr_ | git branch --remote |