With new versions of git new commands have been added which I will probably never use.
Is there a way I can disable these commands so that I my tab completion is faster?
For ex: before, git check<tab>
would autocomplete to git checkout
But now git check<tab>
doesn't tab complete due to there being git check-mailmap
in the newer git version.
This is just one of the example.
Alternatively it would be great if I could "force" git to tab-complete "check" to checkout
.
Edit: I use vanilla bash with no extra modifications
bash
? Do you havezsh
or any completion plugin ? – Suitcasegit switch <branch>
instead of checkout for your navigation between branches. If you accidentally typegit checkout <filename>
, you undo all the changes to the file. It'sgit switch -c <branch>
to create a new branch and switch to it. – Maritsa