【错误记录】Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )
文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
执行
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.232.232.23 版本中新加入的命令 , 使用
git --version
命令 , 查询当前的版本 , 2.22.02.22.02.22.0 版本 ;
执行
git update-git-for-windows
命令 , 升级当前的 Git 版本 ,
如果是 2.172.172.17 之前的版本, 需要使用 git update
命令 , 升级 Git 软件版本 ;
备选方案 :
到 Git 官方下载页面 https://www.git-scm.com/download/win 中下载最新的版本 , 当前的最新版本是 2.34.12.34.12.34.1 版本 ;
直接下载地址是 : https://github.com/git-for-windows/git/releases/download/v2.34.1.windows.1/Git-2.34.1-64-bit.exe
【错误记录】Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )相关推荐
- git使用报错:fatal: Couldn't find remote ref master的解决方法
git使用报错:fatal: Couldn't find remote ref master的解决方法 fatal: Couldn't find remote ref master 翻译过来就是:致命 ...
- git使用报错: fatal: Couldn‘t find remote ref master的解决方法
git使用报错: fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错: fatal: Couldn't find remote r ...
- git使用报错:fatal: Couldn‘t find remote ref master的解决方法
git使用报错:fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错:fatal: Couldn't find remote ref ...
- 【错误记录】Git 使用报错 ( error: Cannot delete branch ‘dev‘ checked out at ‘D:/Git/git-learning-course‘)
文章目录 一.报错信息 二.解决方案 一.报错信息 使用 Git 操作 版本库 , 删除分支时 , 报如下错误 : D:\Git\git-learning-course>git branch - ...
- 【错误记录】Git 使用报错 ( no changes added to commit (use “git add“ and/or “git commit -a“) )
文章目录 一.报错信息 二.解决方案 一.报错信息 修改了 Git 版本库中的 file1.txt 文件 , 直接执行 git commit -m "modify file1" 命 ...
- 日常开发中,你需要掌握的git使用报错解决
1.不允许将代码推送到该项目上受保护的分支 - 问题发生: remote: GitLab: You are not allowed to push code to protected branches ...
- git 使用报错 [rejected] master -> master (fetch first)(non-fast forward)
git 使用中的bug RT ! [rejected] master -> master (fetch first) 在将数据push到gitee仓库上出现这个错误,原因:没有同步gitee上的 ...
- 【错误记录】Git 使用报错 ( git branch -a 仍能查询到已经删除的远程分支 )
文章目录 一.报错信息 二.解决方案 一.报错信息 之前已经执行 git push origin --delete feature1 命令 , 删除了 feature1 远程分支 , 删除操作成功 , ...
- 【错误记录】Git 使用报错 ( error: The branch ‘feature1‘ is not fully merged. )
文章目录 一.报错信息 二.解决方案 一.报错信息 执行 git branch -d feature1 命令 , 删除 feature1 分支 , 报如下错误 : D:\Git\git-learnin ...
最新文章
- 【原创】Kakfa utils源代码分析(三)
- 获取基目录,它由程序集冲突解决程序用来探测程序集
- 字节跳动面试题:用归并排序判断冒泡排序的轮数
- java中的类加载器有,Java自定义的类加载器,java自定义加载,在java中类加载器有以...
- 【深度学习】神经网络基础:反向传播算法
- 有关Struts2a的ction直接使用response异步问题
- kata_小规模流处理kata。 第1部分:线程池
- C++编程调试秘笈(第1次阅读)
- 记录 Annotation processing is not supported for module cycles.
- 信息学奥赛一本通(1230:寻找平面上的极大点)
- 动态规划入门之国王的金矿
- JAVA RPC (六) 之thrift反序列化RPC消息体
- REACT是否真的就比VUE强?(文末附两个框架的学习福利)
- github-新建文件夹
- Wireshark对京东网站进行抓包
- html5 调用歌词播放器,如何用h5+js实现音乐歌词同步播放器
- js过滤检测敏感词汇
- 编译原理算符分析器实现 -* c语言代码,C语言实现算符优先文法源代码(编译原理)...
- C程序综合训练随堂考试(2021年5月27日)
- 谈一谈机器视觉里的定拍与飞拍