# How to connect Node-RED projects to Github

**URL:** https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989
**Category:** General
**Created:** [3 September 2023 00:12 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989 "2023-09-03T00:12:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AleXSR700](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexsr700/32/41161_2.png) [@AleXSR700](https://discourse.nodered.org/u/AleXSR700)
#### Post date: [3 September 2023 00:12 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989/1 "2023-09-03T00:12:48Z")

</div>

Hi everyone  
I wanted to start using Projects and created an empty Repository on Github. I then used the https link but my credentials are not being accepted in Node-RED.  
I then tried to use ssh-key, but then I am told

```auto
The repository host key could not be verified. Please update your known_hosts file and try again.

```

When I substitute the ":" in the ssh link with a "/" I get the error

```auto
Authentication required for repository:

```

But I entered the ssh\_key Git Config under settings.

Does anybody have a good how-to or knows what the issues are? I would prefer to use the https approach, if that is still supported.

Thank you  
Alex

---

<div class="post-metadata">

### Author: ![AleXSR700](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexsr700/32/41161_2.png) [@AleXSR700](https://discourse.nodered.org/u/AleXSR700)
#### Post date: [3 September 2023 00:31 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989/2 "2023-09-03T00:31:24Z")

</div>

Solved it

1. Create an empty git repo (empty!)
2. In Github under _Settings - Developer Settings_ create a new token (classic) with repo access (might also need projects, I don't know, so I added it)
3. In Node-RED under Project Settings add the https link
4. Under Node-RED history select the two arrows and then Remote Branch
5. When asked for your credentials enter your username as you normally would and then enter your token as password.
6. Select to push to that repo and you are done

🙂

---

<div class="post-metadata">

### Author: ![AleXSR700](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexsr700/32/41161_2.png) [@AleXSR700](https://discourse.nodered.org/u/AleXSR700)
#### Post date: [3 September 2023 08:32 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989/3 "2023-09-03T08:32:47Z")

</div>

Quick questions though:

- Do I have to manually store the access credentials somewhere? I restarted my server last night and now I had to re-enter my username and token again.
- Despite having set to automatic updating, I always have to manually push my changes. Is there a second setting somewhere that I need to enable to really commit on Deplay?

---

<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: [17 September 2023 08:33 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-projects-to-github/80989/4 "2023-09-17T08:33:29Z")

</div>

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