We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 868190a commit e4897dbCopy full SHA for e4897db
functions/gbda.fish
@@ -1,6 +1,7 @@
1
function gbda -d "Delete all branches merged in current HEAD, including squashed"
2
git branch --merged | \
3
- command grep -vE '^\*|^\s*(master|main|develop)\s*$' | \
+ # *: current branch, +: current branch on worktree.
4
+ command grep -vE '^\*|^\+|^\s*(master|main|develop)\s*$' | \
5
command xargs -r -n 1 git branch -d
6
7
set -l default_branch (__git.default_branch)
0 commit comments