How to upgrade Git on Windows to the latest version?

前端 未结 14 1616
面向向阳花
面向向阳花 2020-12-02 03:37

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 in

相关标签:
14条回答
  • 2020-12-02 04:15

    Just give the following command with your command prompt.

    git update-git-for-windows
    

    This will ask you a confirmation as follows. Press Y to proceed.

    Once the files are dowloaded, Continue with normal installation procedures. You can check the git version after finishing installation with the following command

    git version
    

    For me, the result was as follows.

    0 讨论(0)
  • 2020-12-02 04:17

    I don't think your problem is related to Windows global PATH, as remote is specific to repo.

    I recommend you to use Git under Cygwin. Git could work under Windows command line, but there may be some weird problems hard to figure out. Under Cygwin it's more nature and has less error.

    All you need is to type bash in Window CMD then start to use the Unix tools and commands. You can use a shortcut to load bash, it's as easy as use normal Windows CMD.

    The same is true for Rails and Ruby. I used RailsInstaller before, but found using Cygwin to install Rails is more stable.

    Finally I'll suggest to install Ubuntu dual boot if you have time(about a month to get familiar). Windows is not very friendly to every Unix tools ultimately. You'll find all pain stopped.

    0 讨论(0)
提交回复
热议问题