error: insufficient permission for adding an object to repository database .git/objects

error: insufficient permission for adding an object to repository database .git/objects

cd 
cd .git/objects
sudo chown -R : *