[英]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.我需要将 Git 从 1.9 版更新到 2.22 版,我想通过命令提示符进行更新,我使用的是 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.这是因为我试图从 Git 网站下载 exe 文件并运行它来更新程序,但它看起来不起作用。
I tried我试过了
Git --help
and I found out that commands like我发现像这样的命令
Git --update
does not exist, at least for version 1.9.不存在,至少对于版本 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 . 如果您正在谈论Windows exe,则下载自解压归档文件
PortableGit-2.22.0-64-bit.7z.exe
并相应地设置PATH
会更容易。
Then the git.exe
would work. 然后
git.exe
将工作。
最后,我首先卸载了1.9 Git版本,然后才通过Git网站上的向下安装的exe文件安装了2.22,从而解决了该问题。
conda install -c anaconda git
I installed the whole package and it worked. conda install -c anaconda git
我安装了整个 package 并且它有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.