When I try to push to a shared git remote, I get the following error:
insufficient permission for adding an object to repository database
Then I read about a fix here: Fix This worked for the next push, since all of the files were of the correct group, but the next time someone pushed up a change it made a new item in the objects folder that had their default group as the group. The only thing I can think of is to change all of the developer's default group for items they check in, but that seems like a hack. Any ideas? Thanks.
This can easily happen if you ran
git init
with a different user from the one you are planning to use when pushing changes.If you blindly follow the instructions on [1] this will happen as you probably created the git-user as root and then immediately moved on to git init without changing user in between.
[1] http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server
There is a possibility also that you added another local repository with the same alias. As an example, you now have 2 local folders referred to as
origin
so when you try to push, the remote repository will not accept you credentials.Rename the local repository aliases, you can follow this link https://stackoverflow.com/a/26651835/2270348
Maybe you can leave 1 local repository of your liking as
origin
and the others rename them for example fromorigin
toanotherorigin
. Remember these are just aliases and all you need to do is remember the new aliases and their respective remote branches.You may have accidentally nested git repositories