Can I setup auto-complete for git on Windows via cmd.exe?

Viewed 24301

I've recently learned that on linux, git can be setup to autocomplete commands: If you type

git br<TAB>

Then it will complete it to git branch.

Can the same auto-completion be set up on Windows?

Update - I'm usually working with git via cmd.exe (I added git to my path). This question is about adding auto-completion to git on cmd, if that's possible.

4 Answers

For future readers, I have found that posh-git combined with Windows Terminal is a beautiful git experience.

This is powershell, not cmd.exe though.

Recently, I just found the git auto-completion is not working on the traditional cmd.exe but did works if I enable the Windows sub-Linux feature, working pretty well on the Windows bash command line

enter image description here

Related