This operation must be run in a work tree 原因是你clone项目的时候,会在.git目录中的config文件(可以使用文本编辑器打开)中的core.worktree节点配置是记录. Bare repos don't have a working tree, so git checkout doesn't make sense for them. It does not have a working tree attached to it.
Sandra Bernhard Net Worth in 2023 Wiki, Age, Weight and Height
Is there a way to suppress this message? You repository is bare, i.e. This operation must be run in a work tree?”错误的含义及原因。 我们了解到,这个错误通常是由于在错误的目录中运行git命令或当前目录不是一个git仓库导致的。
This operation must be run in a worktree`错误。 解决方法是在仓库目录下新建文件夹,然后执.
A bare repository, by definition, has. 当我在git存储库中运行 cd.git && git status git时,只会显示: fatal: This operation must be run in a work tree?”的错误提示信息时,可能的原因和解决方案。 通过正确初始化git仓库、检查工作树路径以及切换到正确的工. This operation must be run in a work tree。 有没有办法抑制这个错误消息? 另一种情况是在zsh, autoload.