diff --git a/.README.md b/.README.md index 22a8467..33186e1 100644 --- a/.README.md +++ b/.README.md @@ -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. diff --git a/document/linux/config/bash/module/git.sh b/document/linux/config/bash/module/git.sh index ab9e366..0c3ab25 100644 --- a/document/linux/config/bash/module/git.sh +++ b/document/linux/config/bash/module/git.sh @@ -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