Git unable to resolve reference and unable to update local ref messages

Share this post:

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.

Over 10 years in business.

Self-funded. No investors. No bullshit.

More than 3,000 customers worldwide.

Helpmonks - no bullshit customer engagement service

Growth starts with action

Empower your team and delight your customers.

Helpmonks - email management for small businesses