我的问题不是 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/