Re:Display your current git branch as part of your bash prompt
by oldgregg on Sunday August 16, 2009 @11:29PM
(#767284)
Funny, I wrote this .bash_profile script (http://gist.github.com/168286) just the other day because I wanted...
1) Minimalist colors
2) Stripped down CLEAN prompt
3) For GIT folders it will display the current branch.
Also, if you use git+github+capistrano, I wrote a bash script where you type "tap" and it will add all new files, commit, push to github. If you type "tap /d" it will also cap deploy it to the server and reload in nginx passenger. For small projects I'll push something and then have to make a small change. Now I can just edit the file in textmate and can add-commit-push-deploy with one command.
It was based on this which I thought was too ugly: http://www.simplisticcomplexity.com/2008/03/13/show-your-git...
Also, if you use git+github+capistrano, I wrote a bash script where you type "tap" and it will add all new files, commit, push to github. If you type "tap /d" it will also cap deploy it to the server and reload in nginx passenger. For small projects I'll push something and then have to make a small change. Now I can just edit the file in textmate and can add-commit-push-deploy with one command.
http://gist.github.com/168589