1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-01 03:47:33 +08:00
This commit is contained in:
Nabheet Sandhu 2026-01-26 11:17:54 +03:00 committed by GitHub
commit 49e53e7551
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,6 +129,7 @@ alias gb='git branch'
alias gba='git branch --all'
alias gbd='git branch --delete'
alias gbD='git branch --delete --force'
alias gbDnr="gbD \$(diff -B <(gb | sed 's,[[:space:]\*]*,,' | sort) <(gbr | sed 's,[[:space:]\*]*origin/,,' | sort) | sed -n 's/^< //p') 2> /dev/null || echo 'No branches found!!!'" # git branch force-delete no remote
function gbda() {
git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch --delete 2>/dev/null