Full threadcodahale·Leonid Volnitsky's git-prompt is the best git-enabled Bash script I've found.http://github.com/lvv/git-prompt/tree/masterView on HN