When we originally started with Git, we were having trouble with other people being able to use the repository.
9:07:37 AM Push failed remote: error: insufficient permission for adding an object to repository database ./objects error: unpack failed: unpack-objects abnormal exit error: failed to push some refs to 'firstname.lastname@example.org:/repos/prototype/webservice.git'
git config core.sharedRepository
Look for the following in the output
group or true or 1 or some mask
If not, then run the following (may have to be root)
git config core.sharedRepository group
Then run the following to set the owner, group to whatever you need
sudo chown -R appbuilder:developers * sudo chmod -R g+rw *
To avoid this problem, type the following to create the repository as a shared repo
git init --shared repository_name.git
sheltonn November 14th, 2013
Posted In: Git