git bash completion mac and git brach listing in terminal
Demonstrated under mac terminal and login shell enabled
this will also install git bash completion
git bash completion mac will work with only if you installed git via official package if you installed through brew in mac then
open your .bash_login or .bashrc file and paste
export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced export PATH="$HOME/bin:$PATH" export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" source /usr/local/git/contrib/completion/git-completion.bash PS1='[u@h w$(__git_ps1 " (%s)")]$ '