What does typing “cmd” in Git Bash do?

I am new to Git and have been following the tutorials on the git-scm website I typed cmd into the input line in Git Bash and all the colours are gone and it looks like the normal command prompt. When I typed the input git status, it does return with the information.

However, when I start the normal command prompt and move to the working directory and type “git status”, git is not recognized as a command.

  • Get git top level directory in windows format CMD
  • Call TortoiseGit's 'show log' by commandline
  • Git Command Does not Work in Windows CMD
  • How do you set the 16 Terminal Colors for Git-Bash?
  • Why I am getting different results while executing the following command with cmd and git bash?
  • Bash in Git for Windows: Weirdness when running a command with CMD.exe /C with args
  • My question is, what does the typing cmd in Git Bash actually do? If it turns the window into the normal command prompt, then why does typing git status in the normal command prompt not work?

    (I have read the answer here, it would also be nice if someone explained what is happening in the steps of the top answer, if it is relevant to this question)

  • Good ways to manage a changelog using git?
  • git rebase on long-lived (remote) feature branches
  • git stash and pop shows file no longer marked as moved?
  • gitignore all files (specific filetype) in a directory and subdirectories
  • git push non-master to remote
  • unable to curl a git tag
  • One Solution collect form web for “What does typing “cmd” in Git Bash do?”

    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.

    Git Baby is a git and github fan, let's start git clone.