git-completion.bash

 https://github.com/git/git/edit/master/contrib/completion/git-completion.bash
 http://git-scm.com/book/en/Git-Basics-Tips-and-Tricks