mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Merge b927372eef into 67cd8c4673
This commit is contained in:
commit
49e53e7551
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ alias gb='git branch'
|
||||||
alias gba='git branch --all'
|
alias gba='git branch --all'
|
||||||
alias gbd='git branch --delete'
|
alias gbd='git branch --delete'
|
||||||
alias gbD='git branch --delete --force'
|
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() {
|
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
|
git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch --delete 2>/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue