Git comes with built-in support for auto-completion of Git commands for the
zsh shells. So if you use either of these shells, you can enable the auto-completion feature and let the
<tab> option help you complete commands.
Generally, the auto-completion feature is distributed with the Git installation, but it is not enabled by default on all platforms or distributions. To enable it, we need to find the
git-completion.bash file distributed/installed with the Git installation.
If you installed Git from Homebrew, it can be found at