Tuesday, November 15, 2016

Git - tab completion

Personally, I really like to tab the commands sometimes since i am lazy and i don't feel like typing the whole thing out and sometimes out of curiosity of what other commands are available to me.

There are the steps on how to enable tab completion in git

1. Download git-completion.bash to your home directory and name it .git-completion.bash
    https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
2. Add source ~/.git-completion.bash to your .bash_profile file
3. Reload .bash_profile file: source ~/.bash_profile

Now you should be able to tab complete your git commands.

No comments:

Post a Comment