git 切换分支,报错 use -- (and optionally --no-guess) to disambiguate
Posted 要一直走下去
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git 切换分支,报错 use -- (and optionally --no-guess) to disambiguate相关的知识,希望对你有一定的参考价值。
原因:git branch abc 命令发生冲突。存在abc的文件,git无法区分abc是文件还是分支
解决:使用 `git switch <分支名称>` 切换分支
以上是关于git 切换分支,报错 use -- (and optionally --no-guess) to disambiguate的主要内容,如果未能解决你的问题,请参考以下文章
git——创建分支后,切换分支报错(error: pathspec 'master' did not match any file(s) known to git)
git切换分支报错:error: pathspec 'origin/XXX' did not match any file(s) known to git
错误记录Git 使用报错 ( no changes added to commit (use “git add“ and/or “git commit -a“) )
错误记录Git 使用报错 ( no changes added to commit (use “git add“ and/or “git commit -a“) )
Git拉取分支报错(fatal:‘XXX' is not a commit and a branch ‘XXX' cannot be created from it)
git 拉取远程分支报错(fatal: '' is not a commit and a branch '' cannot be created from it)(示例