Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.4k points)

Using git, when I do a git pull I get this error:

error: unable to resolve reference refs/remotes/origin/LT558-optimize-sql: No such file or directory

From git+ssh://remoteserver/~/misk5

 ! [new branch]      LT558-optimize-sql -> origin/LT558-optimize-sql  (unable to update local ref)

error: unable to resolve reference refs/remotes/origin/split-css: No such file or directory

 ! [new branch]      split-css  -> origin/split-css  (unable to update local ref)

I've tried git remote prune origin, but it didn't help.

1 Answer

0 votes
by (27.5k points)

It worked out for me when I remove the files that are throwing errors from the folder .git/refs/remotes/origin/

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories