Show Your GIT Branch Name In Your Prompt
git branch over and over to see what branch you are on sucks. Sure, you could argue that you should always KNOW what branch you’re currently working on. And if you did, you would obviously not be a git user.
Bouncing around branches can be pretty common, and I know I’ve messed some things up pretty bad not knowing what branch I was on.
So set up your shell to always put the name of the current branch into your prompt.
Put this at the top of your .bash_profile and you’ll be pimping your branch all over.
Thanks to @defunkt for this.