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).
git github
add a comment |
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
Withgit --version
you can easily check the version. Typegit
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 yourPATH
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 typepath
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 forgit.exe
, as suggested by @WernerHenze, to see if there are multiple copies.
– pjs
Jan 1 at 20:27
add a comment |
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
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
git github
asked Jan 1 at 20:19
Rob HRob H
1651112
1651112
Withgit --version
you can easily check the version. Typegit
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 yourPATH
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 typepath
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 forgit.exe
, as suggested by @WernerHenze, to see if there are multiple copies.
– pjs
Jan 1 at 20:27
add a comment |
Withgit --version
you can easily check the version. Typegit
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 yourPATH
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 typepath
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 forgit.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
add a comment |
1 Answer
1
active
oldest
votes
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).
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
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
add a comment |
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).
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
add a comment |
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).
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).
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
With
git --version
you can easily check the version. Typegit
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 forgit.exe
, as suggested by @WernerHenze, to see if there are multiple copies.– pjs
Jan 1 at 20:27