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