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安裝包 阿里鏡像,下載速度超快。