windows更新git版本,git版本升级

1.先查看当前安装的git版本

git --version

2.更新

git版本是2.17.1之前的,使用

git update

git版本是2.17.1之后的,使用

git update-git-for-windows

3.版本是2.14.1的,会报错

git: 'update' is not a git command

git: 'update-git-for-windows' is not a git command

解决方法:重新下载新版本安装包,覆盖安装即可

4.镜像下载

git官网下载:https://git-scm.com/download/win   (特别慢!!)

git安装包 阿里镜像,下载速度超快。

网址:https://npm.taobao.org/mirrors/git-for-windows/

posted @ 2020-08-04 23:28  Nidhogg14  阅读(4806)  评论(0编辑  收藏  举报