git – “‘git’ is not recognized as an internal or external command, operable program or batch file”

Background

Errored when I issue, “git add”.

Error Message

‘git’ is not recognized as an internal or external command, operable program or batch file.

 

TroubleShooting

Control Panel – Programs and Features

Accessed Control Panel, Programs and Features

Wanted to utilize the Repair option, but the only option available is the “Uninstall“.

Where Is

Let us identify where git.exe is located

Code


where /R c:\ git.exe

Output

Explanation

  1. Git.exe is found in following under the following apps
    • Microsoft Visual Studio ( Integrated Development Environment [IDE] )
    • atom ( Text Editor )
    • Git

Check Path

Display Path

Code


path

Output

Explanation

Too much in my path

Find “git” in Path

Code


path | find /I "git"

Output

Explanation

Nada

Remediation

I obviously installed an App and it messed up my path.

Refresh Path

Before

Refreshed

Review

Rerun “path | find /I  “git”  “

And, confirmed that git now back in.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s