How to use source code control, for example, Git with n8n

Describe the problem/error/question

How to keep a n8n workflow in source code control, for example, Git, during development?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • Windows 11.

Hello @JoeGC hope all is well and welcome to the community.

N8N has an n8n node, which you can use to pull the json of any existing workflow.
N8N has a Convert to file, which can be used to create a file (binary) for the workflow json (this step is optional, since the git nodes have an option to send text, instead of binary).
N8N has git, github, gitlab nodes, which you can use to upload the text or the file to the repo.

Many thanks @jabbson

You are welcome, feel free to mark the answer as solution if that helped.

1 Like

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