# Can I have multiple projects in the same git repository?

**URL:** https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924
**Category:** General
**Created:** [11 March 2025 19:50 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924 "2025-03-11T19:50:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![power\_factor](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@power\_factor](https://discourse.nodered.org/u/power_factor)
#### Post date: [11 March 2025 19:50 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/1 "2025-03-11T19:50:19Z")

</div>

I have 10 Raspberry Pi's running 10 different flows. I would like to back them all up via git, using the projects feature. I would like to have one repository for all of the flows. Is there a way to have multiple flows in the same Node-Red project/git repository?

Thank you

---

<div class="post-metadata">

### Author: ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)
#### Post date: [12 March 2025 08:51 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/2 "2025-03-12T08:51:21Z")

</div>

A Node-RED 'project' contains the full set of flows (tabs), which are all residing in a single flows file.  
If your 10 flows are all running concurrently in the same worksheet, git will backup them all.

---

<div class="post-metadata">

### Author: ![power\_factor](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@power\_factor](https://discourse.nodered.org/u/power_factor)
#### Post date: [12 March 2025 22:15 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/3 "2025-03-12T22:15:34Z")

</div>

Got it. I would like each Raspberry Pi to be running their own sets of flows and then all backup to the same git repository.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [13 March 2025 09:55 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/4 "2025-03-13T09:55:23Z")

</div>

Hi @power_factor

It is possible to have multiple NR projects in the same git repository. I don't have a full guide for setting it up, but they key part is the fact you can, under Project Settings, customise what package.json/flow.json the project uses within a repository:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95cbd7aa5d4fe64fdde9c9c5b7547993a3bba9d4.png)

---

<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: [13 March 2025 11:19 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/5 "2025-03-13T11:19:12Z")

</div>

I went with the structure of NR projects. The only solution that made sense to me was git submodules. So one main node red repo. Then a submodule per node red project. Works fairly well, with git both from cmd and NR integrated git client.

---

<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: [11 June 2025 11:19 UTC](https://discourse.nodered.org/t/can-i-have-multiple-projects-in-the-same-git-repository/95924/6 "2025-06-11T11:19:46Z")

</div>

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