1

I am trying to git pull but i am getting

**

error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed

**

I have tried various things toi change owner permission like this but no awail.

 sudo chown -R $USER:$USER "$(git rev-parse --show-toplevel)/.git"

any suggestion will be appriciated. Thanks.

opensource-developer
  • 2,826
  • 4
  • 38
  • 88

1 Answers1

0

After checking many answers i finally got the solution by following this link 'whoami' does not work on mac terminal

Community
  • 1
  • 1
opensource-developer
  • 2,826
  • 4
  • 38
  • 88