What version of Git do I have?












-1















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).










share|improve this question























  • With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

    – badarshahzad
    Jan 1 at 20:22











  • Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

    – Werner Henze
    Jan 1 at 20:22











  • It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

    – pjs
    Jan 1 at 20:23











  • It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

    – Rob H
    Jan 1 at 20:25











  • There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

    – pjs
    Jan 1 at 20:27


















-1















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).










share|improve this question























  • With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

    – badarshahzad
    Jan 1 at 20:22











  • Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

    – Werner Henze
    Jan 1 at 20:22











  • It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

    – pjs
    Jan 1 at 20:23











  • It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

    – Rob H
    Jan 1 at 20:25











  • There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

    – pjs
    Jan 1 at 20:27
















-1












-1








-1


1






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).










share|improve this question














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).







git github






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 1 at 20:19









Rob HRob H

1651112




1651112













  • With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

    – badarshahzad
    Jan 1 at 20:22











  • Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

    – Werner Henze
    Jan 1 at 20:22











  • It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

    – pjs
    Jan 1 at 20:23











  • It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

    – Rob H
    Jan 1 at 20:25











  • There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

    – pjs
    Jan 1 at 20:27





















  • With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

    – badarshahzad
    Jan 1 at 20:22











  • Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

    – Werner Henze
    Jan 1 at 20:22











  • It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

    – pjs
    Jan 1 at 20:23











  • It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

    – Rob H
    Jan 1 at 20:25











  • There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

    – pjs
    Jan 1 at 20:27



















With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

– badarshahzad
Jan 1 at 20:22





With git --version you can easily check the version. Type git in bash terminal for recheck does it really removed or not.

– badarshahzad
Jan 1 at 20:22













Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

– Werner Henze
Jan 1 at 20:22





Maybe you have multiple versions of git installed? Did you search for git.exe on your PC?

– Werner Henze
Jan 1 at 20:22













It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

– pjs
Jan 1 at 20:23





It's possible you have more than one version installed. Check your PATH to see if there is another copy floating around.

– pjs
Jan 1 at 20:23













It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

– Rob H
Jan 1 at 20:25





It appears that git version is the same as git --version. Same result. @pjs when you say check path is this something I do on the command line?

– Rob H
Jan 1 at 20:25













There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

– pjs
Jan 1 at 20:27







There are multiple ways to check. Easiest is to type path at the command line, but you can also check the environment variable settings. You'll see a list of directories that Windows uses to find executables. The order of the directories is the order in which they get searched. You can also do an explicit search for git.exe, as suggested by @WernerHenze, to see if there are multiple copies.

– pjs
Jan 1 at 20:27














1 Answer
1






active

oldest

votes


















2














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).






share|improve this answer



















  • 1





    That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

    – Rob H
    Jan 1 at 20:55













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998645%2fwhat-version-of-git-do-i-have%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














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).






share|improve this answer



















  • 1





    That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

    – Rob H
    Jan 1 at 20:55


















2














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).






share|improve this answer



















  • 1





    That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

    – Rob H
    Jan 1 at 20:55
















2












2








2







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).






share|improve this answer













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).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 1 at 20:44









VonCVonC

847k29626953252




847k29626953252








  • 1





    That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

    – Rob H
    Jan 1 at 20:55
















  • 1





    That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

    – Rob H
    Jan 1 at 20:55










1




1





That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

– Rob H
Jan 1 at 20:55







That did it. Thanks for the details. The older version of git was in railsinstaller, which I did formerly. I uninstalled that and now the versions match.

– Rob H
Jan 1 at 20:55






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998645%2fwhat-version-of-git-do-i-have%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

'app-layout' is not a known element: how to share Component with different Modules

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

WPF add header to Image with URL pettitions [duplicate]