# Uploading to git (not) working

**URL:** <https://discourse.nodered.org/t/uploading-to-git-not-working/59958>\
**Category:** General\
**Created:** [16 March 2022 22:50 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958 "2022-03-16T22:50:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![koenkv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/koenkv/32/58591_2.png) [@koenkv](https://discourse.nodered.org/u/koenkv)\
**Post date:** [16 March 2022 22:50 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/1 "2022-03-16T22:50:43Z")

</div>

Hello,

I'm trying to upload my node-red project to github  
I configured node-red like in the documentain  
and in node-red everything looks fine and working (stage/commit) on errors  
also if I lock in history I can see the commits

but I can not find the project in github

Is there an way to put on more logging or so to see what the problem is  
and why is node-red acting like there is no problem?

thanks  
KoenKV

---

<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:** [16 March 2022 23:18 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/2 "2022-03-16T23:18:10Z")

</div>

Creating a project in Node-RED doesn't automatically create a repository in GitHub - the repository only exists on your local device.

If you want to connect it to a GitHub Repository you need to create it your self and connect it to your Node-RED project:

1. Create the repository on GitHub - without initialising it with any files
2. Copy the git url for your new repository
3. In Node-RED, open the Project Settings dialog, go to the Settings tab and click the 'add remote' button.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/41ea56e450a5cddd390c46f12ac0051d1d94d699.png)
4. Enter the git url for the new remote (leave the name as 'origin')

Once that is all done, you'll be able to push your changes to GitHub:

1. In the [Commit History](https://nodered.org/docs/user-guide/projects/#commit-history) section of the sidebar tab, you should now see a button with a pair of arrows - that is the remote repo button. Click on it and you should have an option to push changes to the remote.

---

<div class="post-metadata">

**Author:** ![koenkv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/koenkv/32/58591_2.png) [@koenkv](https://discourse.nodered.org/u/koenkv)\
**Post date:** [17 March 2022 07:49 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/3 "2022-03-17T07:49:06Z")

</div>

thanks already for your help

I have added the github repository url  
but now if i get to the Commit History the icon is added  
but it keeps giving an login window

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/d/cdf6c78246db5c1aa05ef87b9a19d268d4d10ace.png)

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [17 March 2022 07:58 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/4 "2022-03-17T07:58:59Z")

</div>

You need to create an Personal access token in your Git account and enter it as your Username in the login window. A password is not necessary.

On Git look under Settings - Developer settings, to create the token.

---

<div class="post-metadata">

**Author:** ![koenkv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/koenkv/32/58591_2.png) [@koenkv](https://discourse.nodered.org/u/koenkv)\
**Post date:** [17 March 2022 08:22 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/5 "2022-03-17T08:22:32Z")

</div>

I got it to work (I think)  
I have files in my repository

thanks for al your help

---

<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:** [16 May 2022 08:22 UTC](https://discourse.nodered.org/t/uploading-to-git-not-working/59958/6 "2022-05-16T08:22:38Z")

</div>

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