bash : git : add gchb to checkout branch.

This commit is contained in:
Dmitry Voronin 2023-10-26 22:19:01 +03:00
parent 4405cfb998
commit 60c684e942
2 changed files with 3 additions and 0 deletions

View file

@ -470,6 +470,7 @@ Command|Description
`gd`|Git diff.
`gc [MESSAGE]`|Git commit.
`gch`|Git checkout.
`gchb`|Git checkout branch.
`gb`|Git branch.
`gbd [BRANCH]`|Delete specified Git branch.
`gf`|Git fetch --all.

View file

@ -8,6 +8,7 @@ alias gst="git stash"
alias gd="git diff"
alias gc="git commit -m"
alias gch="git checkout"
alias gchb="git checkout -b"
alias gb="git branch --all"
alias gbd="git branch -D"
alias gf="git fetch --all -v -p"
@ -74,6 +75,7 @@ __git_complete gst _git_stash
__git_complete gd _git_diff
__git_complete gc _git_commit
__git_complete gch _git_checkout
__git_complete gchb _git_checkout
__git_complete gb _git_branch
__git_complete gbd _git_branch
__git_complete gf _git_fetch