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 15:31:24 UTC+3 tarihinde Ahmet Karahan yazdı: > > 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/71814638-1af3-464a-9092-16e1bd186480%40googlegroups.com.