# Node-red project and github

**URL:** <https://discourse.nodered.org/t/node-red-project-and-github/1344>\
**Category:** General\
**Created:** [5 July 2018 08:28 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344 "2018-07-05T08:28:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hary/32/12340_2.png) [@hary](https://discourse.nodered.org/u/hary)\
**Post date:** [5 July 2018 08:28 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/1 "2018-07-05T08:28:56Z")

</div>

Hi.

I'm trying to use node-red project and I think I managed to fit it correctly locally despite I can't find a .git file in my ~/.node-red folder. (If somebody can tell where is the .git file)

But Now I would like to push it to github and I don't know how to do it.!  
I have this window showed in picture, but from what I understand, I don't have the obligation to create an ssh key. I think I can also join github by entering my password somewhere ?

In case it is obliged to create an ssh key, what kind of name and passphrase should I give ? The passphrase would be specific for when I'm using node-red, isn't it ?  
Here is the image !

 ![node-red_param](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/08c104cefb3a74e8c80f06dc81e38faf08e7b142.png)

---

<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:** [5 July 2018 09:04 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/2 "2018-07-05T09:04:04Z")

</div>

HI @hary - your image doesn’t appear to have uploaded correctly. Could you edit your post and re-add the image? (Don’t reply - edit the original post).

---

<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:** [5 July 2018 09:20 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/4 "2018-07-05T09:20:50Z")

</div>

@igrowing sorry, that is completely unrelated to this topic. Please start a new topic.

---

<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:** [5 July 2018 09:26 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/5 "2018-07-05T09:26:51Z")

</div>

@hary

Node-RED creates your project under `~/.node-red/projects/<name-of-project>` - that is the directory that is the git repo.

To push your project to github you need to first create an empty repository on github. Do not initialise it with any files.

Github will then give you the git url for your repo. You can pick from an HTTPS or SSH style url. If you don't want to use ssh keys, then pick the HTTPS url

 ![knolleary_quick-disposable-test-repo](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/113521d534a4f2dca9aacab2dbdc7e53eea68956.png)

In the [Project Settings dialog](https://nodered.org/docs/user-guide/projects/#accessing-project-settings) you can add that url as a Git Remote for the project.

Does that help?

---

<div class="post-metadata">

**Author:** ![hary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hary/32/12340_2.png) [@hary](https://discourse.nodered.org/u/hary)\
**Post date:** [5 July 2018 15:43 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/6 "2018-07-05T15:43:36Z")

</div>

Yes I guess I'm getting closer but still : How do I push to github then ?

I created an empty repo on github:

> **[hary66/Curing\_node-red](https://github.com/hary66/Curing_node-red)**
>
> Contribute to hary66/Curing\_node-red development by creating an account on GitHub.

I've filled the appropriate field in node-red settings :

 ![node-red_param2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/96b284586bb40bb392508f66e53b17e0dbe3079d.png)

But now I don't know how to push to github.  
Should I do it with command line ?  
I'm also beginner with git. Sorry for asking so many question.

---

<div class="post-metadata">

**Author:** ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Post date:** [5 July 2018 15:59 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/7 "2018-07-05T15:59:03Z")

</div>

No, do it in the History tab, there are three windows, with `<+all>` on first - loca, then Changes to commit - button `<commit>`, and lastly, open the `<Commit History>` at the bottom, from here, commit to the repo, once you have setup your SSH Keys in Settings `>` Git Config, and instructions above.

---

<div class="post-metadata">

**Author:** ![hary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hary/32/12340_2.png) [@hary](https://discourse.nodered.org/u/hary)\
**Post date:** [6 July 2018 12:28 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/8 "2018-07-06T12:28:09Z")

</div>

Exuse me ! I think I'm finally done with the remote ! following message has no need any more !

Sorry but I still don't see a push button.  
I think I've committed locally, but nothing has been push to the remote repo (github):  
The only option I have from node-red GUI interface :  
 ![node-red_push%3F](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/ad9bcd3277bd885e6275e3dae83d4282ca5d8762.png)  
My github repo :

 ![github_node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1bf4cdebbb8cc4526ae9e3cca5a143b8760f8407.png)  
My node-red settings :  
 ![node-red_settings](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/433cb322731fdc9b60799fa032f23c883a4ae7e8.png)

---

<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:** [7 July 2018 00:14 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/9 "2018-07-07T00:14:32Z")

</div>

You need to click on the button with the two arrows in to open up the remote dialog - as shown at this point in the demo video: [https://youtu.be/Bto2rz7bY3g?t=11m30s](https://youtu.be/Bto2rz7bY3g?t=11m30s)

---

<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:** [4 January 2021 17:28 UTC](https://discourse.nodered.org/t/node-red-project-and-github/1344/10 "2021-01-04T17:28:16Z")

</div>

These are the project specific details. This is the thread I used when I originally set it up.

The git details where you create the SSH key are under hamburger menu\>Settings\>Git Config.
