If you want to have a nice informative prompt in your bash shell then add the following to your ~/.bash_profile. We’ll also add a few lines to increase your shell history size and add date/timestamps to it
# setup git completion and prompt to show your current directory, branch and status
export PS1='[\[email protected] \w$(__git_ps1)]\$ '
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)