3

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?

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

4

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:

Check this with git fsck --full.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250