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,700 points
18,885 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
• 10,620 points

Related Questions In Git & GitHub

0 votes
1 answer

How to ignore an error on 'git pull' about my local changes would be overwritten by merge?

Hi Team, If you want to remove all ...READ MORE

answered Jan 5, 2021 in Git & GitHub by MD
• 95,460 points
3,089 views
+1 vote
1 answer

How to force “git pull” to overwrite local files?

Hi@akhtar, First, you need to download the latest from ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
1,894 views
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,700 points
2,367 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,053 views
+2 votes
1 answer
0 votes
2 answers

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

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,612 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP