Intellipaat Back

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

Using git 1.6.4.2, 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/

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...