【问题标题】:error: cannot update the ref <branch>: unable to append to <git location>: Not a directory错误:无法更新 ref <branch>:无法附加到 <git location>:不是目录
【发布时间】:2019-06-11 15:00:18
【问题描述】:

我的问题不是this issue.

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

错误:无法更新参考 'refs/remotes/origin/features/name/surname':无法附加到 '.git/logs/refs/remotes/origin/features/name/surname':不是目录

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

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

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

虽然其他分支看起来像-

refs/remotes/origin/features/name

这个看起来像-

refs/remotes/origin/features/name/surname

【问题讨论】:

标签: git github branch git-pull


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2019-04-12
    • 2023-03-18
    • 2021-02-05
    • 2016-12-18
    • 2014-04-23
    • 2022-09-26
    • 1970-01-01
    • 2017-01-16
    • 2010-11-17
    相关资源
    最近更新 更多