# Local Changes won't Commit

**URL:** <https://discourse.nodered.org/t/local-changes-wont-commit/93459>\
**Category:** General\
**Created:** [25 November 2024 17:17 UTC](https://discourse.nodered.org/t/local-changes-wont-commit/93459 "2024-11-25T17:17:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [25 November 2024 17:17 UTC](https://discourse.nodered.org/t/local-changes-wont-commit/93459/1 "2024-11-25T17:17:08Z")

</div>

I have two node-red instances on different servers. I am using project control and historically I would push instance#1 up to the repository and then pull it down to instance#2. I now wish to make instance#2 the source of truth but I am unable to commit the local changes. I get the following error:

```auto
25 Nov 11:13:36 - [error] Error: error: insufficient permission for adding an object to repository database .git/objects
error: flow.json: failed to insert into database
error: unable to index file 'flow.json'
fatal: updating files failed

```

I have checked all of the files and I do have rw capabilities.

---

<div class="post-metadata">

**Author:** ![ThingsTinkerer](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Post date:** [25 November 2024 17:41 UTC](https://discourse.nodered.org/t/local-changes-wont-commit/93459/2 "2024-11-25T17:41:00Z")

</div>

Sounds like a git issue. It can help to get more details by running git commands from terminal instead of node red's git interface.

Should be many discussions on similar topic like this:  
[Git Push Error: insufficient permission for adding an object to repository database - Stack Overflow](https://stackoverflow.com/questions/6448242/git-push-error-insufficient-permission-for-adding-an-object-to-repository-datab)

Sorry I don't have any specific steps to help at the moment.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [25 November 2024 18:00 UTC](https://discourse.nodered.org/t/local-changes-wont-commit/93459/3 "2024-11-25T18:00:42Z")

</div>

You were right on. I changed the group access based on the content in the link you posted and it is working. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 December 2024 18:01 UTC](https://discourse.nodered.org/t/local-changes-wont-commit/93459/4 "2024-12-09T18:01:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
