This is the prompt I am currently using. (Add to ~/.bashrc file.)
#######################################################################################################################
# BEAUTIFY THE COMMAND PROMPT WITH GIT
#######################################################################################################################
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`