---
title: "Source Control - Environments"
description: "Environments enable enterprise users of n8n to effectively manage multiple deployments of n8n by synchronizing them using a shared git repostiory."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/readme-543
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:36:38.436Z
license: CC-BY-4.0
attribution: "Source Control - Environments — Claudary (https://claudary.paisolsolutions.com/skills/readme-543)"
---

# Source Control - Environments
Environments enable enterprise users of n8n to effectively manage multiple deployments of n8n by synchronizing them using a shared git repostiory.

## Overview

# Source Control - Environments

Environments enable enterprise users of n8n to effectively manage multiple deployments of n8n by synchronizing them using a shared git repostiory.

[Link to docs](https://docs.n8n.io/source-control-environments/understand/environments/)

## Local development

When using the "usual" `pnpm run dev` scripts to start a local n8n instance, your local git settings and credentials will be picked up by the git repository that is cloned within n8n.

This is why you should start n8n in a docker container when doing any kind of manual testing of this feature.

Building a local docker image from your local checkout:
`pnpm build:docker`

Starting a local container using that image:
`pnpm --filter n8n-containers stack:enterprise`

The development experience of running n8n from source in a docker container still leaves a lot to be desired (lots of waiting for building and running the container).
We should improve on this in the future.

## Setup Demo

[Video Demo](https://www.loom.com/share/8615d3d8380f4e26901e1628785ad90f)

- create a github repo
	- copy the ssh repository url
- In n8n
	- go to settings/Environments
	- paste the ssh repository url
	- copy the ssh
- Back in github
	- go to Settings/Deploy Keys
	- Click Add deploy key
	- Pate the ssh
	- **important** Tick "Allow write access"
- Back in n8n
	- Click Connect

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/readme-543) · https://claudary.paisolsolutions.com
