mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Add 'git branch hierarchy' alias on git plugin
With this alias one can see the branches hierarchy of the repository without all the commit messages. Very useful when trying to discover which branch is the parent of another and/or if a branch was merged. * (local-branch-for-tests) * (origin/newer-stuff, newer-stuff) * (tag: before-merging) | * (origin/more-stuff) | | * (origin/new-stuff, new-stuff) | |/ | | * (origin/another-branch) | | | * (origin/master, origin/HEAD) | | |/ | | * | | |\ | |/ / | | * (update-documentation) | * | (HEAD -> master) | |/ | | * (refs/stash) | |/ |/| * | (pr-hints) |/ | * (tag: before-rebase) |/ * (old-local-branch) | * (branch5) |/ | * (branch4) |/ | * (branch3) |/ | * (origin/branch2, branch2) |/ | * (origin/branch1) |/ *
This commit is contained in:
parent
c3b072eace
commit
e693b517cf
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ alias gb='git branch'
|
||||||
alias gba='git branch -a'
|
alias gba='git branch -a'
|
||||||
alias gbd='git branch -d'
|
alias gbd='git branch -d'
|
||||||
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
|
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
|
||||||
|
alias gbh="git log --graph --simplify-by-decoration --pretty=format:'%d' --all"
|
||||||
alias gbl='git blame -b -w'
|
alias gbl='git blame -b -w'
|
||||||
alias gbnm='git branch --no-merged'
|
alias gbnm='git branch --no-merged'
|
||||||
alias gbr='git branch --remote'
|
alias gbr='git branch --remote'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue