Pro: Git Pull does not pull external changes (after editing directly in the repo via Claude code)

Describe the problem/error/question

We have pro, workflow is in git in the main branch. I made some external changes on the branch via Claude code and now try to get them into our n8n staging instance.
I hit pull but it says “No workflow changes to pull from Git”.

What is the error message (if any)?

“No workflow changes to pull from Git”

Information on your n8n setup

  • n8n version: 2.32.7
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue / worker
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubuntu

Any Ideas how I can debug that furthjer?

Hey @alexm, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@jabbson - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hi @alexm

The “No workflow changes to pull from Git” error happens because n8n expects a highly specific file structure, exact formatting, and a naming convention that external tools like Claude Code rarely generate correctly by default. If your files deviate even slightly from what n8n’s Source Control expects, n8n will completely ignore them during a pull operation.

To fix this issue, go through the following checklist to ensure your Git changes match n8n’s requirements.

  1. Verify the File Structure and Naming:

n8n looks for workflows in a specific directory at the root of your repository.

  • Folder Location: Workflows must be placed inside a folder named exactly workflows/ at the root of your Git repository.
  • File Naming: The file must be named using its unique ID followed by the .json extension (e.g., workflows/12345.json or workflows/aBc12D3e.json).
  1. JSON Schema : If Claude Code modified the workflow JSON, it may have introduced schema changes that n8n rejects or doesn’t recognize.

Ensure id, name, nodes, and connections are present at the root level of the JSON. If Claude wrapped the code inside an extra block or missed the id field, n8n will fail to read it.

  1. Match the Subdirectory Settings:

If you configured a custom subdirectory in your n8n Source Control settings (e.g., n8n-config/), your workflows must reside inside <your-custom-folder>/workflows/. Ensure your target staging environment is configured to read from the exact subdirectory where Claude Code pushed the changes.

Hi @alexm

If your n8n instance is configured to pull from main, but your Claude Code changes are sitting on a different branch (e.g., feature-branch), n8n will check main, see that main hasn’t changed, and report that there is nothing to pull.

How to debug:

  • Check n8n Git Settings: Go to your n8n settings and verify which branch is specified in the Git configuration.
  • Verify the Remote: Check your Git provider (GitHub/GitLab) to see if the changes exist on the branch n8n is watching.
  • The Fix: You likely need to merge your branch into main (or whatever branch n8n is tracking) before n8n can “see” them via the Pull command.

Since you are running n8n via Docker, n8n’s access to the Git repository depends entirely on how your volumes are mounted.

How to debug:

  • Check docker-compose.yml or docker run command: Ensure the directory containing your Git repository is correctly mounted as a volume into the n8n container.
  • Verify inside the container: Run this command to see what the n8n container actually sees:
docker exec -it <n8n-container-name> ls -la /path/to/your/git/repo

(Replace /path/to/your/git/repo with the path inside the container where your workflows are stored).

  • Check Git status inside Docker:
docker exec -it <n8n-container-name> git -C /path/to/your/git/repo log -n 5

If the logs inside the container don’t show your recent commits, then n8n is looking at a different version of the files or a different directory entirely.

Hi @alexm,

You likely need to push your local changes to Git before pulling.

Let’s first verify the remote branch has the new commits (from the container, if nothing shown then your commits is not in the remote branch):
git fetch origin
git log --oneline HEAD..origin/main

Check what commit n8n is currently on (if hashes are the same then n8n is in the latest commit):
git rev-parse HEAD
git rev-parse origin/main

Inspect the repo status (if there are local changes n8n may avoid automatic pulling)
git status
git branch -vv
git remote -v

Confirm Claude code has pushed to the current branch

Look at the n8n logs while pulling:
docker logs -f <n8n-container>
or if are using docker compose:
docker compose logs -f n8n

Thanks

Thanks for all your answers.

branch is the same .. main everywhere

I checked in the container via git log - the changes did arrive but are not reflected in the node.

Claude code also did not destroy the structure - especially I would have expected and error message and not just “no changes”. What claude did not do was bumping the workflow version ID.

I modified that versionId and now it works.

Thanks for letting us know about this, We have created LIGO-950 as the internal dev ticket to look into it.