Adds some basic git status to the bash prompt, mimics the github display of ahead/behind.
Ahead and behind, yellow indicates uncomitted changes.
Ahead, red color = untracked files.
Up to date, with one stash. Green color means working directory clean.
By simply pasting this in your terminal:
source <(curl https://raw.github.com/jseb/git-prompt/master/git-prompt) \
&& export PS1="\$(git_prompt)"$PS1
Clone the repo (or just download the file), and add this to the end of your .bash_profile:
source path/to/git-prompt/git-prompt
export PS1="\$(git_prompt)"$PS1