Recently I found the command
git ls-files
and I find it very useful (see the it with -h
option). Why doesn't it appear if i type git
and then press Tab
?
I mean - where is the list of "other" commands of git
?
Look at your ~/.git-completion.sh
and the __git_list_porcelain_commands()
function. The commands that git supports but won't tab-complete are listed there. Most of these commands are so-called "plumbing" commands, including ls-files
. You can easily make them tab-completed by commenting the respective line. Like this:
#ls-files) : plumbing;;
#ls-remote) : plumbing;;
#ls-tree) : plumbing;;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With