2.0 KiB
title, description
| title | description |
|---|---|
| Push and pull | Send work to Git, and fetch work from Git to your instance. |
Push and pull
If your n8n instance connects to a Git repository, you need to keep your work in sync with Git.
This document assumes some familiarity with Git concepts and terminology. Refer to Git and n8n for an introduction to how n8n works with Git.
--8<-- "_snippets/source-control-environments/one-direction.md"
Fetch other people's work
!!! note "Restricted to instance owners" Ordinary users can't fetch work from Git.
To pull work from Git, select Pull
in the main menu.
--8<-- "_snippets/source-control-environments/push-pull-menu-state.md"
n8n may display a warning about overriding local changes. Select Pull and override to override your local work with the content in Git.
Workflow owner may change on pull
When you pull from Git to an n8n instance, the workflow owner may change. If the same owner is available on both instances, the owner remains the same. If the original owner isn't on the new instance, n8n sets the instance owner as the workflow owner.
Send your work to Git
!!! note "Restricted to instance owners" Ordinary users can't send work to Git.
--8<-- "_snippets/source-control-environments/push.md"
What gets committed
n8n commits the following to Git:
- Workflows, including their tags and the email address of the workflow owner. You can choose which workflows to push.
- Credential stubs (ID, name, type)
- Variable stubs (ID and name)
You can programmatically Manage variables using the n8n API.
!!! note "Coming soon: credential support with secret managers" n8n is working on support for external secret managers to handle credentials. Once this feature is complete, n8n will support linking the secret manager to multiple instances.