user2073143
user2073143

Reputation:

What version of Git do I have?

I'm new to Git and I'm getting some errors. Research tells me I ought to update to the latest version. In the Windows installer, it says I have version 2.20.1 installed. But if I run

Git version 

in the command line, it tells me I have version 1.9.4.msysgit.2. Does anyone know what this means? I've uninstalled and reinstalled twice and the inconsistency persists, and also my errors (another issue).

Upvotes: 2

Views: 9136

Answers (1)

VonC
VonC

Reputation: 1324278

In your CMD session, type

where git

That will give you the PATH where git.exe is found.

Then type:

set PATH

That will show you the PATH currently used: your old git path is probably set before the new one you are trying to install.
Edit your environment variable (as seen here) to modify your PATH and set the proper folder first (the one with the new Git).

Upvotes: 2

Related Questions