# Node red projects feature

**URL:** https://discourse.nodered.org/t/node-red-projects-feature/678
**Category:** General
**Created:** [7 June 2018 19:00 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678 "2018-06-07T19:00:21Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![echtelerp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/echtelerp/32/535_2.png) [@echtelerp](https://discourse.nodered.org/u/echtelerp)
#### Post date: [7 June 2018 19:00 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/1 "2018-06-07T19:00:21Z")

</div>

Hi there,  
As I use node red within quite a couple of devices already I’m looking for a good guide, how to setup node-red projects, with github.  
And somehow my regular info source YouTube let me down on this. However, does anyone have a good tutorial, how to setup the feature from scratch?

Thanks in advance  
Philipp

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [7 June 2018 19:43 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/2 "2018-06-07T19:43:48Z")

</div>

Some good info (including a video) via the blog - [https://nodered.org/blog/2018/01/31/version-0-18-released](https://nodered.org/blog/2018/01/31/version-0-18-released)

---

<div class="post-metadata">

### Author: ![echtelerp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/echtelerp/32/535_2.png) [@echtelerp](https://discourse.nodered.org/u/echtelerp)
#### Post date: [7 June 2018 19:49 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/3 "2018-06-07T19:49:05Z")

</div>

Thanks for the link, I’ll check it out 🙂  
I don’t know, why YouTube did not find that. Probably me typing the wron search request 🙂

---

<div class="post-metadata">

### Author: ![echtelerp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/echtelerp/32/535_2.png) [@echtelerp](https://discourse.nodered.org/u/echtelerp)
#### Post date: [12 June 2018 17:22 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/4 "2018-06-12T17:22:07Z")

</div>

Hi Dceejay,

I followed the video. Thanks for the link.  
One thing I was missing in the video: how to create a new empty repository with node red flows.  
Not cloning a repository but how to start from scratch.

I was able to try and error it out.

basically I made everything the same till the setup of the git remote. For the remote I created a new GitHub repository.  
then, when the last “new button” appears according tho the video, (arrow up arrow down button)… when I tried to push the code, it asked me for a branch… I just typed master and whoops, it worked 🙂  
maybe this could be part of a how to if you ever do one again, otherwise, if someone else has similar problems here is now the hint 🙂

---

<div class="post-metadata">

### Author: ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)
#### Post date: [29 June 2018 19:43 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/5 "2018-06-29T19:43:04Z")

</div>

I am also stuck with the remote part.

Everything works fine. I can create projects, create branches etc. But I don’t see any effect in my Github account when I commit changes to a project.

I’m going to follow the video and try to grasp what you diff, echtelerp. Keep you posted…

---

<div class="post-metadata">

### Author: ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)
#### Post date: [29 June 2018 20:59 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/6 "2018-06-29T20:59:44Z")

</div>

I have been struggling around. I really could use some help.

A step-wise description on creating a new project, with a remote would help!

As I don’t have existing repositories with nodered flows cloning does not work for me.

---

<div class="post-metadata">

### Author: ![echtelerp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/echtelerp/32/535_2.png) [@echtelerp](https://discourse.nodered.org/u/echtelerp)
#### Post date: [30 June 2018 18:16 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/7 "2018-06-30T18:16:00Z")

</div>

Hi Goofy2k,

Where did you get stuck?  
did you create an empty GitHub repository?

---

<div class="post-metadata">

### Author: ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)
#### Post date: [30 June 2018 19:15 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/8 "2018-06-30T19:15:49Z")

</div>

Hi, thanks for your reply.

I created an empty repository and copied the SSH related URL into the Git remotes field in the NR Project\>Settings tab.

In the NR Settings \> Git config tab I added an SSH key, which I then copied into the Github User settings \> SSH and GPG tab. Then, in the Settings \> Deploy keys of the empty repository I pressed the Add Deploy Key knob and added the created key.

When I make some changes to my flow I see that flow.json has changed. I can commit the changes locally. When I go to the commit history, I see a knob with Branch: master and a knob with the two arrows. When I press the two arrows a pop-up appears, stating “Your local branch is not currently tracking a remote branch”. When I press on the branch field, I get a red pop up with: " An unexpected error ocurred. “Error: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.”

Somewhere in the process in creating the SSH key I marked a field that there should be read/write rights.

I tried this over and over, but don’t know how to get on.

---

<div class="post-metadata">

### Author: ![Goofy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/goofy2k/32/24007_2.png) [@Goofy2k](https://discourse.nodered.org/u/Goofy2k)
#### Post date: [3 July 2018 17:36 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/9 "2018-07-03T17:36:04Z")

</div>

In the video a method is described to clone an existing repository. I tried to do this for the example project shown. But then I hit on the problem that I don’t have the passkey for the credentials.

For someone who is new, like me, it would probably be nice if there would be a description of how to start a project from scratch (create a New project), OR, to have an example project with the relevant passkey(s) available for cloning.

---

<div class="post-metadata">

### Author: ![dexterlabora](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dexterlabora/32/44_2.png) [@dexterlabora](https://discourse.nodered.org/u/dexterlabora)
#### Post date: [25 March 2019 15:37 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/10 "2019-03-25T15:37:22Z")

</div>

Just to add an FYI..

I struggled with this for days until I realized that my Github account has 2FA enabled. This means I should have been using an [Access Token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) instead of my normal github account password. Unfortunately, there was no feedback from the Node-RED editor and it just accepted my regular password and silently fail. It wouldn't sync or display any warnings/errors.

.. but it works now 🙂

---

<div class="post-metadata">

### Author: ![simonk83](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/simonk83/32/7651_2.png) [@simonk83](https://discourse.nodered.org/u/simonk83)
#### Post date: [18 April 2019 23:14 UTC](https://discourse.nodered.org/t/node-red-projects-feature/678/11 "2019-04-18T23:14:37Z")

</div>

> [@echtelerp](#):
>
> then, when the last “new button” appears according tho the video, (arrow up arrow down button)… when I tried to push the code, it asked me for a branch… I just typed master and whoops, it worked

I had this same problem and was stumbling around for quite a while until I found your comment and tried that. I suppose I just assumed that once you added your keys and the remote branch details it would know the branch name, but clearly not 🙂

The one other thing that got me into trouble is the ssh link you copy from github starts with git@, however the dialog in the add remote section suggests prefixing it with ssh://, which I did of course, but it doesn't actually want that at all 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3232e1fc908cfba49a5ca08c5123260a55ca1e75.png)
