error: cannot update the ref <branch>: unable to append to <git location>: 不是一个目录

问题描述 投票:2回答:1

我的问题不是 这个问题。

在拉动过程中,我得到了以下错误信息-。

错误:无法更新 ref'refsremotesoriginfeaturesnamesurname':无法追加到'.gitlogsrefsremotesoriginfeaturesnamesurname'。不是一个目录

增加用户权限并不能解决任何问题。

解决办法-然后简单地从GitHub上删除这个分支就解决了这个问题。

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

而其他分支看起来像

refs/remotes/origin/features/name

这个看起来像...

refs/remotes/origin/features/name/surname
git github branch git-pull
1个回答
1
投票

在你的本地repo中,删除".gitlogsrefsremotes"。.git/logs/refs/remotes/origin/features/name.

可能有一个文件,它期待一个目录。

© www.soinside.com 2019 - 2024. All rights reserved.