When you run cmd
in git bash, it actually calls the command prompt and triggers the Windows Command prompt, since the PATH variable contains the C:\Windows\System32
location set. If you type exit
, the command prompt exits and you go back to git bash.
If typing git commands doesn't work in the Windows Command prompt then the path of git installation might not have been set in the PATH
variable of Windows. Try adding the variable using this link
Remember git bash is the name of the prompt but not the actual exe
. If you want to see actual git bash prompt through Command Prompt you will have run sh.exe --login -i
.