Git Bash Prompts And Tab Completion

Get – Git Completion Bash

Put in ~/.bashrc
source ~/.git-completion.sh
export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '