Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 490
Farrukh Chishti Avatar asked Jan 17 '19 11:01

Farrukh Chishti


1 Answers

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

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

like image 130
johntrepreneur Avatar answered Oct 04 '22 22:10

johntrepreneur