# How to push Node-RED to GitHub using access tokens

**URL:** <https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796>\
**Category:** General\
**Created:** [16 August 2021 14:30 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796 "2021-08-16T14:30:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![portfedh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/portfedh/32/46277_2.png) [@portfedh](https://discourse.nodered.org/u/portfedh)\
**Post date:** [16 August 2021 14:30 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/1 "2021-08-16T14:30:24Z")

</div>

**I'm having a bit of an issue pushing my Node-RED project to GitHub**

I'm using Nose-RED version 2.0.5: Maintenance Release and node js v12.22.5

_This is what I've done so far:_

I created an empty repo in github and copied the address to my remote repositories in my project settings as shown below:

 ![Screen Shot 2021-08-16 at 9.13.08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/13b1ad5b4b4c728a4e03354e25b3ea455b883dd7.png)

In my project history, I went to my commit history and pushed on the arrows for "Manage remote branch" but then nothing happens.

 ![Screen Shot 2021-08-16 at 9.15.15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/7396b3473077dccd2770a3a47e5e0d02526751cb.png)

The first time I did this, I got prompted for my username and password. After logging in, I got a message saying that GitHub now needs access tokens to provide access.

I went back to GitHub and created one, but now I cant find how to add those credentials to get Node Red to sync.

I went through the official "node-red projects" youtube video but it uses SSH keys, not tokens.

¿Does anyone know how to provide the access token?

Thanks!

---

<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 August 2021 14:39 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/2 "2021-08-16T14:39:36Z")

</div>

Hi @portfedh

you use the token in place of the password when it prompts for your credentials.

However, it does cache things in memory (so it doesn't prompt every time). It _should_ prompt again if the user/password weren't accepted - but if that isn't happening, try restarting Node-RED itself. That will flush the credential cache for sure.

---

<div class="post-metadata">

**Author:** ![portfedh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/portfedh/32/46277_2.png) [@portfedh](https://discourse.nodered.org/u/portfedh)\
**Post date:** [16 August 2021 14:56 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/3 "2021-08-16T14:56:48Z")

</div>

I just restarted node red using:

`$ node-red-restart `

Since I didn't get prompted, I restarted the Raspberry Pi but I'm still not getting prompted.

Is is possible to force the prompt? or add the credentials in a file?

---

<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 August 2021 14:58 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/4 "2021-08-16T14:58:17Z")

</div>

Node-RED only stores the repo credentials in memory. If you have restarted Node-RED, then it will prompt you for credentials the next time you do something that tries to interact with the remote repository.

If it is not doing that, then please check in the browser's javascript console for any error messages.

---

<div class="post-metadata">

**Author:** ![portfedh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/portfedh/32/46277_2.png) [@portfedh](https://discourse.nodered.org/u/portfedh)\
**Post date:** [16 August 2021 15:18 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/5 "2021-08-16T15:18:09Z")

</div>

Got it, thank you.

I got it to prompt the username/password again by adding the remote branch: "main" and then pushing "Push".

 ![Screen Shot 2021-08-16 at 10.15.52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/111707febceb3f44b6444c1a041264cf1c2e4f2c.png)

Thanks for your help @knolleary !

---

<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:** [15 October 2021 15:18 UTC](https://discourse.nodered.org/t/how-to-push-node-red-to-github-using-access-tokens/49796/6 "2021-10-15T15:18:58Z")

</div>

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