git --version
git版本是2.17.1之前的,使用
git update
git版本是2.17.1之后的,使用
git update-git-for-windows
git: ‘update‘ is not a git command
git: ‘update-git-for-windows‘ is not a git command
解决方法:重新下载新版本安装包,覆盖安装即可
git官网下载:https://git-scm.com/download/win (特别慢!!)
git安装包 阿里镜像,下载速度超快。
网址:https://npm.taobao.org/mirrors/git-for-windows/
原文:https://www.cnblogs.com/tu240302975/p/13437053.html