N8n's Git integration is not detecting unsynced workflows in the push dialog after a large, failed push attempt

I am using the source control and environments feature to connect my self-hosted n8n instance to a Git repository.

My initial test of pushing a single workflow was successful and created a commit in Git as expected. However, I then encountered an issue when I attempted to push approximately 200 workflows at once. The push failed with an error in the n8n interface (I unfortunately do not recall the exact error message), and no workflows were committed.

Now, when I open the “Push” dialog, it no longer shows the original 200 workflows that failed to sync. Instead, it only displays newly created or recently modified workflows. As the screenshot shows, I only see 24 workflows listed, even though I have over 200 in my instance.

This behavior seems like a bug. Has anyone else encountered this issue or found a resolution?

n8n version: 1.112.0
plan: Business

Thank you for your help.

Replying to myself from future: I found that this is a bug in n8n.

All the workflows and personal ones are displayed to admin in push modal. But they are pushed, it throws error.

Steps To Reproduce

  1. Create a couple of private credentials from a account 1, or personal workflow and couple of team workflows
  2. From account 2 (instance admin), click push button to open push modal. As an instance admin, you will see all private workflows and credentials along with team workflows and credentials.
  3. Select team workflow/credential and select at least one private workflow/credential.
  4. Add a commit message and click push button
  5. Boom. You will see and error Failed to export credentials…
  6. Open the push modal again, you wont see that team workflow anymore
  7. But Open your git repository, the changes was not pushed.
1 Like