> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Git unable to resolve reference and unable to update local ref messages
- URL: https://helpmonks.com/blog/git-unable-to-resolve-reference-and-unable-to-update-local-ref-messages/
- Published: 2013-05-28T00:00:00.000Z
- Updated: 2026-04-04T01:57:35.000Z
- Description: I've recently had an error of: Whatever I've tried did not work. After a while I saw that all the files in the refs/remotes/origin/… directory where being re
- Author: Nitai
- Tags: email marketing

I’ve recently had an error of:

\[code\]error: unable to resolve reference refs/remotes/origin/…\[/code\]

while doing a “git pull”. Since I’ve never seen this one before, I’ve turned to the net for some resolutions. According to many one has to do either a:

\[code\]git gc –prune=now\[/code\]

or a

\[code\]git fetch\[/code\]

Whatever I’ve tried did not work. After a while I saw that all the files in the refs/remotes/origin/… directory where being reported with “0”. In the end, my solution was to remove all those file and then issue a simple “git pull” in order to bring down the references again.