简体   繁体   中英

How do I update Git version via Anaconda command prompt?

I need to update Git from verson 1.9 to 2.22 and I want to do it via command prompt, I am using Anaconda.

This because I tried to download the exe file from Git website and to run it to update the program but it looks like it does not work.

I tried

Git --help

and I found out that commands like

Git --update

does not exist, at least for version 1.9.
I also tried

pip install -update Git

But it does not work.

Does anybody knows how to do the upgrade?

If you are talking about the Windows exe, it would be easier to download the self-extracting archive PortableGit-2.22.0-64-bit.7z.exe and set your PATH accordingly .

Then the git.exe would work.

最后,我首先卸载了1.9 Git版本,然后才通过Git网站上的向下安装的exe文件安装了2.22,从而解决了该问题。

conda install -c anaconda git I installed the whole package and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM