blog.keyboardplaying.org
How to show the Git branch in the Linux prompt - Keyboard Playing
Git can be tricky: you can commit on one branch before realizing it was checked out. Here is a quick configuration of your prompt to remedy this.