I installed Cygwin on windows and one of the default packages is git tab completion, but I don't have tab completion.
I did some searching and found a note saying it isn't enabled by default. I copied the skel .bashrc and .bash_profile to ~ and in .bashrc
I uncommented the lines for completion and then relaunched the console. Still nothing.
I then noticed that the file .bash_completion was not present in /etc
, so I found a copy of that online and put it in place, but I still have no completion in git.
It seems there should also be a /etc/bash_completion.d
directory with git/
in it, but I don't have that either.
Updated for 2016: Install package bash-completion
.