# Add files to the gitlab repository using nodes

**URL:** <https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009>\
**Category:** Developing Nodes\
**Tags:** function-node\
**Created:** [7 June 2023 08:20 UTC](https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009 "2023-06-07T08:20:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sateeshbandaru9](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sateeshbandaru9](https://discourse.nodered.org/u/Sateeshbandaru9)\
**Post date:** [7 June 2023 08:20 UTC](https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009/1 "2023-06-07T08:20:15Z")

</div>

Hi All,

I need to add or modify the files in the gitlab repository using nodes. any one can help help me on this to create the node flows for this.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 June 2023 08:42 UTC](https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009/2 "2023-06-07T08:42:50Z")

</div>

One way would be to use an Exec node to run the command that you would use in a command window.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [7 June 2023 15:42 UTC](https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009/3 "2023-06-07T15:42:47Z")

</div>

I don't think you should be manipulating files in GitLab directly unless you really have to. The workflow usually involves using `git` commands locally which, as Colin says, can be done via `exec` nodes.

There may be a GitLab cli tool though which could be used in the same way. I've not checked. I think GitHub might have something like that?

---

<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:** [6 August 2023 15:43 UTC](https://discourse.nodered.org/t/add-files-to-the-gitlab-repository-using-nodes/79009/4 "2023-08-06T15:43:12Z")

</div>

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