It is really difficult to type the full command in the terminal when we can autocomplete it by just typing the initial few characters and then pressing the tab. So to enable the autocomplete feature for git commands in the Mac OS, just follow the steps mentioned in this article.
Run the below commands in your terminal and now git autocomplete will work while pressing the tab key.
brew install git bash-completion echo 'autoload -Uz compinit && compinit' >> ~/.zshrc source ~/.zshrc
Happy Coding!!
Leave a Reply