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,210 points
2,835 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,300 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
1,380 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,670 points
944 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,550 points
11,526 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
32,661 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,248 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,300 points
6,057 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,300 points
39,389 views