Skip to content

Developer Guide: Git Tips

ginatrapani edited this page Sep 13, 2010 · 7 revisions

Set up git tab completion

Download
git-completion.bash at http://repo.or.cz/w/git.git?a=blob;f=contrib/completion/git-completion.bash;h=4ea727b14303e397117067993dbda446ed154ea1;hb=HEAD and put it in your ~/bin/ and do a:

echo "source ~/bin/git-completion.bash" >> ~/.bash_profile

Then you can type git b to auto-complete “branch” or type git branch s and press tab to see a list of branches that start with S.

Clone this wiki locally