Insufficient permission for adding an object to repository database git/objects => http://gaiforbana.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6ODA6Ikluc3VmZmljaWVudCBwZXJtaXNzaW9uIGZvciBhZGRpbmcgYW4gb2JqZWN0IHRvIHJlcG9zaXRvcnkgZGF0YWJhc2UgIGdpdC9vYmplY3RzIjt9 This can easily happen if you ran git init with a different user from the one you are planning to use when pushing changes. Total 5 delta 3 , reused 0 delta 0 error: insufficient permission for adding an object to repository database. I've just come across the same issue. 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. Total 3 delta 2 , reused 0 delta 0 error: insufficient permission for adding an object to repository database. Delta compression using up to 4 threads. Alternatively, you can make the repository world-writable by running git config core. Total 15 delta 11 , reused 0 delta 0 remote: error: insufficient permission for adding an object to repository database objects remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To git bitbucket. Together with the deis maintainers, we were able to find the root cause of the issue, and I have a pull request on the way to solve it. Please visit to review our Bulk Email Senders Guidelines. I hit this same issue. The assets folder in Glitch is a virtual folder and is not part of your local filesystem. I will be moving to a different company after such a screw up. Because of this error, it failed to push some refs as shown above. As you should notice there are some differences in the way both new and existent projects were defined. git commit fails due to insufficient permissions - What they sometimes forget to consider is troubleshooting it first. I was trying to git merge my dev branch with my master branch via the Glitch console. But I got this error: error: insufficient permission for adding an object to repository database. I realize that this might be by design. My project is quite old, but it looks like the last successful commits were pushed from local, so totally possible that I caused this problem myself. The assets folder in Glitch is a virtual folder and is not part of your local filesystem. Follow the instructions here to get your project functional again and then look to remove unneeded files and. Heythat was indeed the problem. I solved it by just rm -rf. This seemed to solve the problem temporarily, but every few days the git folder appears to fill up my project again and I have to blow it away again to make the project build again. I can only fix it by editing the. Please, commit your changes before you merge. I may be wrong with something probablyI do not have much experience with git … But anyway, thank you very much for your time.