Skip to content

Instantly share code, notes, and snippets.

@christianb
Created November 15, 2019 10:25
Show Gist options
  • Save christianb/e548817dd30311c8644ff171e0ac929f to your computer and use it in GitHub Desktop.
Save christianb/e548817dd30311c8644ff171e0ac929f to your computer and use it in GitHub Desktop.
Git: unable to resolve reference
When you can't checkout a remote branch with Git and getting this error:
“unable to resolve reference” you should do the following:
Try cleaning-up your local repository with:
$ git gc --prune=now
$ git remote prune origin
See: https://stackoverflow.com/questions/2998832/git-pull-fails-unable-to-resolve-reference-unable-to-update-local-ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment