sudo gedit .bashrc
add this line:
export PS1='\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s)") \[\033[01;34m\]$\[\033[00m\] '
My personal favorite is Sexy Bash Prompt
which looks like
I personally have a colder colored fork which also showed unsynced branches:
@twolfson your coloring rox :)
That wont do anything without git bash completions. You need to source the appropriate file depending on your shell.