Error "'git' is not recognized as an internal or external command"

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Error "'git' is not recognized as an internal or external command"

Message par ForumBot »

Error "'git' is not recognized as an internal or external command"
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Error "'git' is not recognized as an internal or external command"

Message par ForumBot »

You may not have set your `PATH` correctly to point at your Git installation.

You need to add the following paths to `PATH`:

- `C:\Program Files\Git\bin\`

- `C:\Program Files\Git\cmd\`

And check that these paths are correct. You may have Git installed on a different drive, or under `Program Files (x86)`. Correct the paths if necessary.

Modifying `PATH` on Windows 10:

- In the Start Menu or taskbar search, search for "environment variable".

- Select "Edit the system environment variables".

- Click the "Environment Variables" button at the bottom.

- Double-click the "Path" entry under "System variables".

- With the "New" button in the PATH editor, add `C:\Program Files\Git\bin\` and `C:\Program Files\Git\cmd\` to the end of the list.

- Close and re-open your console.

Modifying `PATH` on Windows 7:

- Right-click "Computer" on the Desktop or Start Menu.

- Select "Properties".

- On the very far left, click the "Advanced system settings" link.

- Click the "Environment Variables" button at the bottom.

- Double-click the "Path" entry under "System variables".

- At the end of "Variable value", insert a `;` if there is not already one, and then `C:\Program Files\Git\bin\;C:\Program Files\Git\cmd\`. Do not put a space between `;` and the entry.

- Close and re-open your console.

If these instructions weren't helpful, feel free to look at some others:

- [How to set the path and environment variables in Windows](https://www.computerhope.com/issues/ch000549.htm) (Computer Hope)

- [How to edit your system PATH for easy command line access in Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/) (How-To Geek)

- [How to set Path environment variables in Windows 10](https://www.addictivetips.com/windows-tips/set-path-environment-variables-in-windows-10/) (Addictive Tips)

- [What are PATH and other environment variables, and how can I set or use them?](https://superuser.com/questions/284342/what-are-path-and-other-

*(Réponse tronquée)*
Répondre

Revenir à « Performance & Dépannage »