git - 错误 : cannot update the ref <branch>: unable to append to <git location>: Not a directory

标签 git github branch git-pull

我的问题不是 this issue.

pull 时,我收到以下错误-

error: cannot update the ref 'refs/remotes/origin/features/name/surname’: unable to append to '.git/logs/refs/remotes/origin/features/name/surname': Not a directory



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

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

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

而其他分支看起来像-
refs/remotes/origin/features/name

这个看起来像——
refs/remotes/origin/features/name/surname

最佳答案

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

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

关于git - 错误 : cannot update the ref <branch>: unable to append to <git location>: Not a directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54235453/

相关文章:

python - 从 Github 导入 python 库

github - 是否可以在 Visual Studio Code 中为我的项目创建 github 存储库?

mercurial - 在 Mercurial/TortoiseHg 中隐藏一个分支

linux - 绕过 Git 的目录限制?

git - 如何恢复我在本地删除但尚未提交的文件?

git - 还原 git 上次提交并将其保存在不同的分支中

git - 打印 HEAD 的符号名称

git - 我如何 git push 特定分支?

git - 挤压 Git 镜像提交

xcode - 使用 git 维护共享代码库