文章目录

  • 一、报错信息
  • 二、解决方案

一、报错信息


执行

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‘. )相关推荐

  1. git使用报错:fatal: Couldn't find remote ref master的解决方法

    git使用报错:fatal: Couldn't find remote ref master的解决方法 fatal: Couldn't find remote ref master 翻译过来就是:致命 ...

  2. git使用报错: fatal: Couldn‘t find remote ref master的解决方法

    git使用报错: fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错: fatal: Couldn't find remote r ...

  3. git使用报错:fatal: Couldn‘t find remote ref master的解决方法

    git使用报错:fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错:fatal: Couldn't find remote ref ...

  4. 【错误记录】Git 使用报错 ( error: Cannot delete branch ‘dev‘ checked out at ‘D:/Git/git-learning-course‘)

    文章目录 一.报错信息 二.解决方案 一.报错信息 使用 Git 操作 版本库 , 删除分支时 , 报如下错误 : D:\Git\git-learning-course>git branch - ...

  5. 【错误记录】Git 使用报错 ( no changes added to commit (use “git add“ and/or “git commit -a“) )

    文章目录 一.报错信息 二.解决方案 一.报错信息 修改了 Git 版本库中的 file1.txt 文件 , 直接执行 git commit -m "modify file1" 命 ...

  6. 日常开发中,你需要掌握的git使用报错解决

    1.不允许将代码推送到该项目上受保护的分支 - 问题发生: remote: GitLab: You are not allowed to push code to protected branches ...

  7. git 使用报错 [rejected] master -> master (fetch first)(non-fast forward)

    git 使用中的bug RT ! [rejected] master -> master (fetch first) 在将数据push到gitee仓库上出现这个错误,原因:没有同步gitee上的 ...

  8. 【错误记录】Git 使用报错 ( git branch -a 仍能查询到已经删除的远程分支 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 之前已经执行 git push origin --delete feature1 命令 , 删除了 feature1 远程分支 , 删除操作成功 , ...

  9. 【错误记录】Git 使用报错 ( error: The branch ‘feature1‘ is not fully merged. )

    文章目录 一.报错信息 二.解决方案 一.报错信息 执行 git branch -d feature1 命令 , 删除 feature1 分支 , 报如下错误 : D:\Git\git-learnin ...

最新文章

  1. 【原创】Kakfa utils源代码分析(三)
  2. 获取基目录,它由程序集冲突解决程序用来探测程序集
  3. 字节跳动面试题:用归并排序判断冒泡排序的轮数
  4. java中的类加载器有,Java自定义的类加载器,java自定义加载,在java中类加载器有以...
  5. 【深度学习】神经网络基础:反向传播算法
  6. 有关Struts2a的ction直接使用response异步问题
  7. kata_小规模流处理kata。 第1部分:线程池
  8. C++编程调试秘笈(第1次阅读)
  9. 记录 Annotation processing is not supported for module cycles.
  10. 信息学奥赛一本通(1230:寻找平面上的极大点)
  11. 动态规划入门之国王的金矿
  12. JAVA RPC (六) 之thrift反序列化RPC消息体
  13. REACT是否真的就比VUE强?(文末附两个框架的学习福利)
  14. github-新建文件夹
  15. Wireshark对京东网站进行抓包
  16. html5 调用歌词播放器,如何用h5+js实现音乐歌词同步播放器
  17. js过滤检测敏感词汇
  18. 编译原理算符分析器实现 -* c语言代码,C语言实现算符优先文法源代码(编译原理)...
  19. C程序综合训练随堂考试(2021年5月27日)
  20. 谈一谈机器视觉里的定拍与飞拍

热门文章

  1. ORACLE常用的动态性能视图
  2. 监控录像帮忙找回医院被偷的女婴
  3. 在代码中向ReportViewer动态添加数据源
  4. webform(九)——JQuery基础(选择器、事件、DOM操作)
  5. 代码练习 用户注册登陆与密码加密
  6. 学习笔记之Iframe
  7. jQuery笔记之工具方法extend插件扩展
  8. Microsoft Bot Framework 上手
  9. Linux思维导图之shell脚本编程基础、习题
  10. [转]JS设计模式-单例模式(二)