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 in Git & GitHub by akhtar
• 10,330 points
45 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 by MD
• 22,520 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,370 points
178 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
• 9,940 points
4,578 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
16,549 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
492 views
0 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 in Git & GitHub by MD
• 22,520 points
320 views
0 votes
1 answer

fatal: unable to access could not resolve host: GitHub

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

answered Apr 10 in Git & GitHub by MD
• 22,520 points
509 views