Kaleem Ullah's Blog

git autocompletion

Posted in git by Kaleem Ullah on January 17, 2011

Now you can auto-complete git commands. But how?

1) Save below file into your home directory
https://github.com/git/git/raw/master/contrib/completion/git-completion.bash

2) Add below line into your .bashrc file
source ~/git-completion.bash

and

3) Restart Terminal

You can see more details for configuration in above mentioned link.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: