我已经配置了我的.bash_aliases
喜欢:
alias gc="git checkout"
alias gcf="git flow feature checkout"
source ~/.git-completion.bash
__git_complete gc _git_checkout
source ~/.git-flow-completion.bash
__git_complete gcf __git_flow_feature
但是当我尝试完成时,我应该选择checkout
然后我可以选择我的分支:
$ gcf
checkout diff help publish rebase track
delete finish list pull start
$ gcf checkout a
a_branch1 a_branch2
当我写+acheckout
时会自动选择我该怎么做gcf
TAB