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

Viewed 8067

My issue is not this issue.

On pull, I am getting the following error-

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

Adding user permissions did not cut any ice.

Solution- Then simply deleting the branch from GitHub resolved the issue.

Interestingly this branch has a different directory structure than other branches.

While other branches look like-

refs/remotes/origin/features/name

This one looks like-

refs/remotes/origin/features/name/surname
1 Answers

In your local repo, delete .git/logs/refs/remotes/origin/features/name.

There probably a file where it's expecting a directory.

Related