If you did some git command with user root
previously for some reason and now you don't have the permission with any other user, you can simplest do this.
From the root project:
cd .git/objects
ls -al
sudo chown -R yourname:yourgroup *
Try again with your desire user.