Does not load git commands through PATH

Asked 2 years ago, Updated 2 years ago, 49 views

C:\Program Files\Git\bin and C:\Program Files\Git\cmd both go through the PATH and do not load the git command even after rebooting.

error message
'git' is not recognized as an internal or external command, an operational program or batch file.

environment
Operating System: Windows 10

windows git

2022-09-30 16:06

2 Answers

User environment variables passed through the path, but
This was caused by a failure to pass through the environment variables in the system.

After passing through the environment variables in the system, the git command is now executed.

(I'm not sure why it doesn't run through the user's environment variables, but


2022-09-30 16:06

Are you trying to run from a command prompt?For Windows, you will basically use the git command from Git Bash.

Start Menu - > Git - > Git Bash


2022-09-30 16:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.