Once you have a lot of branches going, it can sometimes be hard to keep track of which one is which, and which ones you worked in most recently. This bash alias sets up the command "brls" (for branch ls) that will list all your branches in order of most recently accessed. Place in your .bashrc_local file (or whatever init file you are using).

To enable bash completion for git (so you can tab-complete 'git co' or 'git br' commands) download git_completion.sh to your home directory, and append the following line to the end of your ~/.bash_profile (or ~/.bashrc)

source ~/git_completion.sh

If you would like to have the name of the current branch in your prompt, download git_prompt.sh to your home directory, and append the following lines to the end of your ~/.bash_profile (or ~/.bashrc)

source ~/git_prompt.sh
export PS1='$(__git_ps1 "(%s)")$ '

Assuming your prompt is just '$ ', adding this line to your .bash_profile will cause it to look like '(master)$ ' whenever you cd into a directory containing a git repo in which the master branch is checked out.