error Could not read error unable to read tree object HEAD nothing to commit working directory clean

0 votes

Hi Guys,

I have git installed in my system. But when I try to check git status, it shows me the below error.

error: Could not read 
error: unable to read tree object HEAD
nothing to commit (working directory clean)
Apr 10, 2020 in Git & GitHub by akhtar
• 38,260 points
8,943 views

1 answer to this question.

0 votes

Hi@akhtar,

 This kind of error may occur if your .git folder don't have the permission. So give permission to this folder using the bellow given command.

$ cd .git
$ chmod 755 *

Make this changes and try once.

answered Apr 10, 2020 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

Error : unable to write symref for HEAD: Function not implemented

This is usually caused by a permission ...READ MORE

answered Oct 30, 2020 in Git & GitHub by Kim
8,040 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,387 views
0 votes
1 answer

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

This happens when there are unnecessary files ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 10,620 points
18,916 views
0 votes
2 answers

VSCode “please clean your repository working tree before checkout”

One of the ways is to stash ...READ MORE

answered Apr 22, 2019 in Git & GitHub by Nikhil
51,115 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,065 views
+2 votes
1 answer
0 votes
1 answer

error on branch master nothing to commit, working directory clean, when try to commit my changes.

Hi@akhtar,  If you already have a .git/ folder ...READ MORE

answered Apr 10, 2020 in Git & GitHub by MD
• 95,460 points
18,466 views
+1 vote
2 answers

fatal: unable to access could not resolve host: GitHub

Hi@akhtar, This can be caused in incorrect proxy ...READ MORE

answered Apr 10, 2020 in Git & GitHub by MD
• 95,460 points
153,507 views
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