To answer the question, you need to first understand "shell" vs "terminal app".
A "shell" is an interpreter of your commands. When you type same commands in cmd and bash you get different results, because they're different interpreters. Examples of shells include cmd
, powershell
, sh
, bash
, zsh
, etc (both bash
and zsh
are more powerful versions of sh
). On windows, these shells exist as .exe files. Double clicking them will launch a CLI window. The window is a bare minimum "terminal app" provided by Windows, the window doesn't have an official name.
A "terminal app" is a GUI that emulates physical terminals of the old days, they offer UI features like tabs, fonts, colors, etc. Examples of terminal apps include Git Bash
, ConEmu
, the terminal in VSCode
, the new Window Terminal
, etc. You can open any shell inside them.
Back to the original question: sh.exe
and bash.exe
are shells. Bash is a superset of sh, with more features. You'll likely use bash if you have your own preferred terminal app. git-bash.exe
is a terminal app (a very basic one, its name is "mintty") which will automatically open the bash shell. If you have your own preferred terminal app (like ConEmu
or the new Windows Terminal
), then you don't need to use git-bash.exe
.