Case in point:
I\'m a on mac with bash v3.2.17, I\'m using git installed via macports with the bash_completion variant.
When I type git checkout m<
git checkout m<
If you use alias g='git', i add this line of code in .bash_aliases
alias g='git'
.bash_aliases
complete -o default -o nospace -F _git g