# Using GitHub to track changes produced in flows is not helpful

**URL:** <https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399>\
**Category:** General\
**Created:** [24 August 2024 12:50 UTC](https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399 "2024-08-24T12:50:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UmbraLimi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/umbralimi/32/64111_2.png) [@UmbraLimi](https://discourse.nodered.org/u/UmbraLimi)\
**Post date:** [24 August 2024 12:50 UTC](https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399/1 "2024-08-24T12:50:31Z")

</div>

Hello!

I want to be able to track changes to individual nodes using `git`. However, I did not want to set up Node-Red `Projects` (access to settings is restricted).

So at present, I am exporting all the nodes in a tab, naming the file according to the tab name (e.g. "Flow 1.json"), and checking them into a folder under git control.

But when I make a simple change (like changing the position of 1 node as a test) the export JSON cannot be easily diff'ed as Node-Red has internally made changes. There were almost 1000 additions and a similar number of deletions, in a 56 node tab.

I read that this is to be expected and that a potential solution is to introduce a step before saving to the git repo step, and somehow sort the contents of the JSON routinely in the same manner so that git diff doesn't have to deal with order.

Is this something that can be done inside Node-Red?

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [26 August 2024 19:21 UTC](https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399/2 "2024-08-26T19:21:40Z")

</div>

Hi!  
I'm pretty sure it's not in the core of Node-RED.  
You yet could write your own plugin that hooks into the process of deploying - and thus ensure a given sort order.

---

<div class="post-metadata">

**Author:** ![UmbraLimi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/umbralimi/32/64111_2.png) [@UmbraLimi](https://discourse.nodered.org/u/UmbraLimi)\
**Post date:** [27 August 2024 10:42 UTC](https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399/3 "2024-08-27T10:42:05Z")

</div>

Thank you! I will explore that. I didn't know that plugins could hook into the deploy process.

---

<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:** [25 November 2024 10:42 UTC](https://discourse.nodered.org/t/using-github-to-track-changes-produced-in-flows-is-not-helpful/90399/4 "2024-11-25T10:42:10Z")

</div>

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