# Setting up remote branch

**URL:** <https://discourse.nodered.org/t/setting-up-remote-branch/79152>\
**Category:** General\
**Tags:** docker\
**Created:** [12 June 2023 18:40 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152 "2023-06-12T18:40:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarbonNanoTubes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carbonnanotubes/32/56163_2.png) [@CarbonNanoTubes](https://discourse.nodered.org/u/CarbonNanoTubes)\
**Post date:** [12 June 2023 18:40 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/1 "2023-06-12T18:40:08Z")

</div>

I am trying to setup a node-red project for the first time and I'm a little confused on how I get node-red to push to my origin. Under Menu-\>Projects-\>Project Settings-\>Settings, I have added a git remote to my local gitlab server I have setup.

But when I attempt to select a remote, I get an error.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/1/31ef61df1a48080519db96e4af03ae376837f5ff.png)

Node-Red is running within Docker so I'm not sure where to edit this file. Do I need to bind my users know-host file into the node-red container?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 June 2023 19:20 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/2 "2023-06-12T19:20:16Z")

</div>

See: [https://github.com/node-red/node-red-docker/issues/191](https://github.com/node-red/node-red-docker/issues/191)

---

<div class="post-metadata">

**Author:** ![CarbonNanoTubes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carbonnanotubes/32/56163_2.png) [@CarbonNanoTubes](https://discourse.nodered.org/u/CarbonNanoTubes)\
**Post date:** [13 June 2023 12:13 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/3 "2023-06-13T12:13:01Z")

</div>

So I tired what was said for the known\_hosts file and still didn't work. So the only thing I can do is use username/password based authentication? I guess that's fine.

There really should be stuff in the docs that covers this

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 June 2023 15:59 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/4 "2023-06-13T15:59:16Z")

</div>

> [@CarbonNanoTubes](#):
>
> There really should be stuff in the docs that covers this

Perhaps. But it is more of a docker thing than a node-red thing isn't it?

Ps, please feel free to raise a docs pull request with pertinent info. It would be gladly received.

---

<div class="post-metadata">

**Author:** ![CarbonNanoTubes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carbonnanotubes/32/56163_2.png) [@CarbonNanoTubes](https://discourse.nodered.org/u/CarbonNanoTubes)\
**Post date:** [13 June 2023 20:55 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/5 "2023-06-13T20:55:52Z")

</div>

> [@Steve-Mcl](#):
>
> Perhaps. But it is more of a docker thing than a node-red thing isn't it?
> 
> Ps, please feel free to raise a docs pull request with pertinent info. It would be gladly received.

Yea that is true but I would say since they offer official dockers images it should be something that is covered.

As far as PRing the docs, I would but I’m still not 100% there. Still don’t have ssh keys working, just basic authentication

---

<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:** [12 August 2023 20:56 UTC](https://discourse.nodered.org/t/setting-up-remote-branch/79152/6 "2023-08-12T20:56:11Z")

</div>

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