gco() { git checkout "$@" } # Enable git completion if available if [ -f /usr/share/bash-completion/completions/git ]; then . /usr/share/bash-completion/completions/git fi # Enable git branch completion for gc if type __git_complete &>/dev/null; then __git_complete gco _git_checkout fi