|Posted by Jamal Nasir on February 14, 2012 at 8:50 AM|
If you switch branches oftenly and you don't know in which branch you are in currently. Then run the following
lines in the terminal which will show you the current branch name...
PS1='\[$(tput setaf 3)\]\u@\h:\[$(tput sgr0)$(tput setaf 5)\]\w\[$(tput sgr0)$(tput setaf 2)\] $(__git_ps1 "[%s]") \[$(tput sgr0)\]$ '