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