Thank you Philip, your guidence helped me to find the correct path. I 
couldn't find with cmd.exe, that I had 3 versions of Git on my machine.  
But I could find them using git-bash. One of them is found inside Anaconda, 
the other one came with C++ and Codelite installaiton and the one that I've 
updated was in "Program files/Git". I've changed the wrong paths editing 
the PATH environment variable and now it shows the correct version. This 
was a 2 weeks headache, thank you very much.

26 Nisan 2020 Pazar 23:35:34 UTC+3 tarihinde Philip Oakley yazdı:
>
> Hi Ahmet,
>
> I presume you know that you can have multiple copies of git, at different 
> versions, on the same machine. And they 'look' the same, because each has a 
> different fake root directory.
>
> IN each of the two tests, 
> `cd / # to get to the root dir
> pwd -W # to get the windows path of the current directory.
> git --version # what have I got here?
>
> ----
> I've got both the SDK and the regular Git-for-Windows download, which 
> currently are the same version, but often not. (as below.)
> You may have a separate version for the VS code install.
>
>
> phili@Philip-Win10 MINGW64 /c/git-sdk-64/usr/src/build-extra (relnoteicon)
> $ cd / # get to the root dir
>
> phili@Philip-Win10 MINGW64 / ((685647a82...))
> $ pwd -W # to get the windows path of the current directory.
> C:/git-sdk-64
>
> phili@Philip-Win10 MINGW64 / ((685647a82...))
> $ git --version # what have I got here?
> git version 2.26.2.windows.1
>
> phili@Philip-Win10 MINGW64 / ((685647a82...))
> $
> ------
>
> phili@Philip-Win10 MINGW64 ~
> $ cd / # get to the root dir
>
> phili@Philip-Win10 MINGW64 /
> $ pwd -W # to get the windows path of the current directory.
> C:/Program Files/Git
>
> phili@Philip-Win10 MINGW64 /
> $ git --version # what have I got here?
> git version 2.26.2.windows.1
> ---
>
> Philip
>
> On Sunday, April 26, 2020 at 1:31:24 PM UTC+1, Ahmet Karahan wrote:
>>
>> I installed Git on my Windows machine months ago but had no time to start 
>> with Git. Finally 2 weeks ago I started to learn Git, when it committed an 
>> update request. 
>> I updated to version 2.26.1. I started Windows cmd.exe and typed git 
>> --version. Perfect! the updated version number was displayed, 'git version 
>> 2.26.1.windows.1'
>>
>> Problem:
>> And then I runned git-bash, typed again git --version,  but it did not 
>> display the actual version that I've installed 5 mins ago, instead it 
>> displayed 'git version 2.20.1.windows.1'. 
>>
>> What I did?
>> I uninstalled and reinstalled version 2.26.1, and I tested git-bash after 
>> new installation. The same happened, git-bash displayed 2.20.
>> A week after, I typed in Windows cmd.exe 'git update-git-for-windows'. It 
>> updated to 2.26.2 successfuly. But the problem didn't solved.
>> Suspecting that the path connected to the git-bash icon may have been 
>> linked to an older version, I went to the folder where Git was located and 
>> ran git-bash.exe inside the last installation folder. And again nothing has 
>> changed. Now I doubt that this is a bug. Can you test this possibility on 
>> your machines, please? Or something is wrong/missing with my Windows 
>> installation, what can it be?
>>
>>
>> I send you screen capture of both windows, above the cmd.exe below the 
>> git-bash.exe after the installation.
>>
>> [image: git-bash.JPG]
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/8e28e399-69c3-49ed-9399-5f57ee9d1a4e%40googlegroups.com.

Reply via email to