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
解決方法:重新下載新版本安裝包,覆蓋安裝即可
git官網下載:https://git-scm.com/download/win (特別慢!!)
快速下載地址:點這裏