> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/administer/use-source-control-and-environments/understand-source-control.md). Agents can also search and read this documentation through its [MCP server](https://docs.n8n.io/~gitbook/mcp).

# Understand source control

Understand how source control and environments work in n8n.

Environments (Classic) use Git-based source control to move work between n8n instances.

{% hint style="info" %}
**Feature availability**

Environments (Classic) are available on:

* **n8n Cloud:** Enterprise
* **Self-hosted:** Business, Enterprise

Environments (Classic) are available from n8n 1.1.0.

* 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.
  {% endhint %}

{% hint style="info" %}
**New version available**

These pages cover Environments (Classic). For the new version, see [Environments](https://docs.n8n.io/administer/environments.md). Environments are available from n8n 2.47.0 on Enterprise plans. They're in Preview. To compare the versions and upgrade an instance, see [Upgrade from Environments (Classic)](https://docs.n8n.io/administer/environments/upgrade-from-environments-classic.md).
{% endhint %}

## Related resources

* [Use source control and environments](https://docs.n8n.io/administer/use-source-control-and-environments.md)
* [Work with environments](https://docs.n8n.io/administer/use-source-control-and-environments/work-with-environments.md)
* [Use Git in n8n](https://docs.n8n.io/administer/use-source-control-and-environments/use-git-in-n8n.md)
* [Choose branching patterns](https://docs.n8n.io/administer/use-source-control-and-environments/choose-branching-patterns.md)
* [Set up source control](https://docs.n8n.io/administer/use-source-control-and-environments/set-up-source-control.md)
* [Push and pull changes](https://docs.n8n.io/administer/use-source-control-and-environments/push-and-pull-changes.md)
* [Compare versions](https://docs.n8n.io/administer/use-source-control-and-environments/compare-versions.md)
* [Move work between environments](https://docs.n8n.io/administer/use-source-control-and-environments/move-work-between-environments.md)
* [Use environments programmatically with the public API](https://docs.n8n.io/administer/use-source-control-and-environments/use-environments-via-api.md)
* [Tutorial: Create environments with source control](https://docs.n8n.io/administer/use-source-control-and-environments/tutorial-create-environments-with-source-control.md)
