错误:无法更新引用 <branch>:无法附加到 <git location>:不是目录

Far*_*hti 19 git branch github git-pull

我的问题不是这个问题。

\n\n

在拉动时,我收到以下错误 -

\n\n
\n

错误:无法更新引用\n \'refs/remotes/origin/features/name/surname\xe2\x80\x99:无法附加到\n \'.git/logs/refs/remotes/origin/features/name /姓氏\':不是目录

\n
\n\n

添加用户权限并没有解决任何问题。

\n\n

解决方案-\n然后只需从 GitHub 删除分支即可解决该问题。

\n\n

有趣的是,这个分支的目录结构与其他分支不同。

\n\n

而其他分支看起来像 -

\n\n
refs/remotes/origin/features/name\n
Run Code Online (Sandbox Code Playgroud)\n\n

这个看起来像——

\n\n
refs/remotes/origin/features/name/surname\n
Run Code Online (Sandbox Code Playgroud)\n

joh*_*eur 28

在您的本地存储库中,删除.git/logs/refs/remotes/origin/features/name.

可能有一个文件需要一个目录。