Error: git pull fails “unable to resolve reference” “unable to update local ref”

0 votes

When I run a simple git pull command, I get this error:

unable to resolve reference refs/remotes/origin
Jul 26, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
463 views

1 answer to this question.

0 votes

This happens when there are unnecessary files in your system, so clean-up your local repository with the following commands:

$ git gc --prune=now
$ git remote prune origin
answered Jul 26, 2018 by Sophie may
• 9,370 points

Related Questions In Git & GitHub

0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

answered Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
35 views
0 votes
1 answer

Git pull vs Git Fetch

The objective of both these commands is ...READ MORE

answered Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,380 points
181 views
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,810 points
90 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to view the nested workflow of a local git repository?

The ‘git log’ command is your closest ...READ MORE

answered Jul 4, 2018 in Git & GitHub by Sophie may
• 9,370 points
46 views
0 votes
1 answer