简体   繁体   中英

error: cannot update the ref 'refs/remotes/origin/xyz': unable to create directory for '.git/logs/refs/remotes/origin/xyz': No such file or directory

I am facing below issue while taking fresh pull. ( git pull )

error: cannot update the ref 'refs/remotes/origin/xyz': unable to create directory for '.git/logs/refs/remotes/origin/xyz': No such file or directory

I have checked particular location and there is neither permission issue nor such directory exists.

Jfyi I have already searched similar threads but those are not worked for me and most of them are related to append, delete etc.

I am badly stuck at this and any help would be highly appreciated.

I had the same issue and found that there is a file with the name of directory to be created. I deleted the file and this resoved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM