This bash prompt could tell you which branch you are in when you are in a git repo.
PS1=’\[\e[01;32m\][\u@\[\e[01;33m\]\h\[\e[01;34m\]\W]`git branch >/dev/null 2>&1 && echo -n -e “\[\e[01;33m\](branch:$(git branch | sed -e ‘/^[^*]/d’ -e “s/^\* \(.*\)/\1/”))\[\e[01;34m\] “`\$ \[\e[00m\]‘
Recent Comments