赞
踩
执行
git switch -c feature1
命令 , 创建分支 , 报如下错误 :
D:\Git\git-learning-course>git switch -c feature1
git: 'switch' is not a git command. See 'git --help'.
git switch
命令是
2.23
2.23
2.23 版本中新加入的命令 , 使用
git --version
命令 , 查询当前的版本 ,
2.22.0
2.22.0
2.22.0 版本 ;
执行
git update-git-for-windows
命令 , 升级当前的 Git 版本 ,
如果是
2.17
2.17
2.17 之前的版本, 需要使用 git update
命令 , 升级 Git 软件版本 ;
备选方案 :
到 Git 官方下载页面 https://www.git-scm.com/download/win 中下载最新的版本 , 当前的最新版本是 2.34.1 2.34.1 2.34.1 版本 ;
直接下载地址是 : https://github.com/git-for-windows/git/releases/download/v2.34.1.windows.1/Git-2.34.1-64-bit.exe
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。