bash prompt - colorfull git status

if you get 

-bash: __git_ps1: command not found

error do

$ curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git

and add

source ~/.bash_git

above this code