Check publishing settings when moving n8n workflows between environments
Key Takeaway
When moving n8n workflows through Git, check what is stored and what the receiving instance publishes. Credential values do not automatically travel with the workflow.

Connect development and production
The official n8n environment documentation describes two setups: multiple instances on one branch, and multiple instances on separate branches. With a single branch, one instance can push work and another can pull it. With separate branches, the documentation's example goes through a pull request and a merge in the Git provider.
Check which repository and branch the production instance uses. The push-and-pull documentation recommends a one-way flow: edit in development, push to Git, pull into production.
What Git stores and what needs new values
n8n lists workflows, tags, credential stubs and variable stubs among the items committed to Git. According to the push-and-pull documentation, a credential stub includes an ID, name and type; other fields are included only if they're expressions. The environment documentation says actual credential and variable values aren't synchronized with Git, so you have to set them up separately on a new instance. Check separately whether included expressions contain sensitive material.
A workflow can also carry its owner's email address. And the fact that secrets aren't synced doesn't, on its own, make a repository safe to open to the public. Check the repository permissions and look over what you're about to commit.
Check automatic publishing on pull
The push-and-pull documentation describes three auto-publish choices. Off is the default: it doesn't try to publish workflows and leaves their local publish state alone. The second choice tries to publish only workflows that are already published on the receiving instance, so new workflows stay unpublished. On tries to publish every pulled workflow, new ones included.
An attempt isn't a guarantee, though. n8n says validation errors or missing credentials can block publication, and archived workflows are never auto-published. If auto-publish is on, check the result screen after a pull.
Review changes before pulling
A pull can overwrite local workflows that differ from Git, and a push can overwrite the workflow stored in Git. So look at three things first: changes made only in production, whether the development version is ready, and which destination is connected.
The documentation also says that pulling changes to a published workflow can briefly unpublish and republish it, which causes a short interruption. Does that still happen when auto-publish is Off? That's unconfirmed. So choose a suitable time, and decide what you'll check in your environment. This article is based on official documentation checked November 3, 2026. But the documentation repository's main branch doesn't establish availability in a particular app version, so verify access and settings for your installation.
Frequently Asked Questions
Are credential secrets pushed to Git too?
The n8n environment documentation says credential and variable values are not synchronized with Git. Credential stubs include identifiers, names and types, so review repository access as well.
Does a pull always publish new workflows?
No. The documented default auto-publish setting is Off; options also exist to attempt publishing already-published workflows or all pulled workflows.
What should I check before pulling?
Git content can override a local workflow, so review local changes and the connected repository and branch first.
Sources & Verification Date
- Environments in n8n · Verified
- Push and pull changes · Verified