-bash: __git_ps1: command not found
If you use homebrew and have updated your git to 1.7.12 you should see this annoying message instead of your beautiful prompt:
-bash: __git_ps1: command not found
To solve the problem just add this line to your ~/.profile ( ~/.bash_profile, ~/.bashrc) before setting PS1:
source /usr/local/share/git-core/contrib/completion/git-prompt.sh
Update: The issue was fixed in the latest version of the git homebrew formula:
brew update
brew uninstall git
brew install git

