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/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM