如何在Windows上升级到最新版本的Git?仍然显示旧版本 [英] How to upgrade to the latest version of Git on Windows? Still showing older version
问题描述
我刚刚从我以前的版本1.7.9.mysysgit.0升级到适用于Windows的Git 1.8.0.1。我从Git站点下载了新版本并通过普通的Git安装程序EXE安装。
也就是说,当我启动终端窗口时,它仍然显示我正在运行git version 1.7.9.mysysgit 0.0。当我从我的提示中输入git --version时,同样的事情。
我发现这篇文章是关于与Mac OSX上的Git类似的问题,这让我相信它有一些事情要做有一个错误的路径,但我仍然是非常新的(所有这一切都是5个月的自学),所以我在如何将它翻译成Windows时遇到了麻烦。
这个问题出现在我开始一个新的Rails项目并试图推到Git上。我加了remote:
git remote add origin git@github.com:brianscottk / blog.git
然后:推送-u原始大师
我收到以下错误消息:
致命: https://github.com 参考发现:你是否在服务器上运行git update-server-info?
href =https://help.github.com/articles/https-cloning-errors =noreferrer>这篇文章,它促使我升级,并且在这里。
$更新(26SEP2016):不再需要卸载先前版本的git以将其升级到最新版本;在 git win下载网站上找到的安装程序包会照顾所有人。只需按照提示。有关其他信息,请按照安装和升级git 中的说明操作。I just upgraded to Git 1.8.0.1 for Windows, from my previous version 1.7.9.mysysgit.0. I downloaded the new version from the Git site and installed through the normal Git installer EXE.
That said, when I fire up my terminal window, it still is showing that I am running git version 1.7.9.mysysgit.0. When I type "git --version" from my prompt, same thing.
I found this article on a similar issue with Git on Mac OSX, which leads me to believe that it has something to do with a faulty PATH, but I'm still pretty new at all this (5 months self-taught), so I'm at a loss in how to translate this to Windows.
This problem arose when I began a new Rails project and tried to push it up to Git. I added the remote:
git remote add origin git@github.com:brianscottk/blog.git
then:
git push -u origin master
I received the following error message:
fatal: https://github.com refs not found: did you run git update-server-info on the server?
Googling that error led me to this article, which prompted me to upgrade, and here I am.
Update (26SEP2016): It is no longer needed to uninstall your previous version of git to upgraded it to the latest; the installer package found at git win download site takes care of all. Just follow the prompts. For additional information follow instructions at installing and upgrading git.
这篇关于如何在Windows上升级到最新版本的Git?仍然显示旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!