Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'git status' failed with code 128: fatal: unable to read

I want to use Bitbucket for my iOS project but I am getting error after creating repository. Please find error given below:

'git status' failed with code 128: fatal: unable to read

How can I resolve this?

like image 790
Rajput Nancy Katal Avatar asked Nov 23 '25 13:11

Rajput Nancy Katal


1 Answers

git status is a local operation, so it should not be impacted by the fact your repository is hosted on Bitbucket.

Try (outside of XCode) a git status to see if the issue persists: simply check the rights associated with those files, are they owned by the right user/group on your machine?
Try also to clone again your Bitbucket repository (to a new empty local folder) and see if you can read it (git status) and import it in XCode.

If the message is "unable to read <sha1>", then the repository might be corrupted, as detailed in:

  • "Git status does not work : unable to find, unable to read"
  • "How to fix corrupted Git repository?"

Check this with git fsck --full.

like image 86
VonC Avatar answered Nov 26 '25 04:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!