源代码控制和环境#
¥Source control and environments
Feature availability
- Available on Enterprise.
- You must be an n8n instance owner or instance admin to enable and configure source control.
- Instance owners and instance admins can push changes to and pull changes from the connected repository.
- Project admins can push changes to the connected repository. They can't pull changes from the repository.
n8n 使用基于 Git 的源代码控制来支持环境。将 n8n 实例链接到 Git 仓库,即可创建多个由 Git 分支支持的 n8n 环境。
¥n8n uses Git-based source control to support environments. Linking your n8n instances to a Git repository lets you create multiple n8n environments, backed by Git branches.
本节:
¥In this section:
- 理解:
-
n8n 中的环境:环境的用途及其在 n8n 中的工作方式。
¥Environments in n8n: The purpose of environments, and how they work in n8n.
-
Git 和 n8n:n8n 如何使用 Git。
¥Git and n8n: How n8n uses Git.
-
分支模式:n8n 实例与 Git 分支之间可能存在的关系。
¥Branch patterns: The possible relationships between n8n instances and Git branches.
-
设置环境源代码控制:如何将 n8n 实例连接到 Git?
¥Set up source control for environments: How to connect your n8n instance to Git.
- 使用:
¥Using:
-
推送和拉取:将工作流发送到 Git,并将工作流从 Git 获取到你的实例。
¥Push and pull: Send work to Git, and fetch work from Git to your instance.
-
在不同环境间复制工作:如何在不同的 n8n 实例之间复制工作?
¥Copy work between environments: How to copy work between different n8n instances.
-
教程:创建带有源代码控制的环境:使用 n8n 推荐配置设置环境的完整教程。
¥Tutorial: Create environments with source control: An end-to-end tutorial, setting up environments using n8n's recommended configurations.
相关章节:
¥Related sections:
- 变量:可重用值。
¥Variables: reusable values.
- 外部密钥:使用外部密钥库管理 credentials。
¥External secrets: manage credentials with an external secrets vault.