When I run the "help" command in Git Bash I get the error "cmd: command not found"

0

When I write:

git config --help

Git Bash gives me the error:

/usr/bin/start: line 8: com: command not found

    
asked by Thom Twd 16.02.2018 в 21:09
source

1 answer

3

It may be because you did not select the option to add to the Path when you installed git or something wrong happens in the installation.

To verify it:

  • Go to the control panel
  • System and security
  • System
  • Advanced System Configuration (Top menu on the left)
  • In the advanced options tab
  • At the end a button shows the word "Environment variables"
  • System variables
  • Verify the one named path
  • See if the list shows

    C:\Archivos de Programa\Git\bin\git.exe
    

    and
        C: \ Program Files \ Git \ cmd

  • If not, you should add it in new, just copy the routes indicated in the previous step, usually those are the routes where the git is installed by default.

  • In any case and to save you trouble, I recommend reinstalling it and at the moment that the path option appears to be checked.

        
    answered by 17.02.2018 / 01:02
    source