Keep every n8n workflow safely stored in a Git repo so your team has history, audit, and quick recovery. Ideal for teams that build many flows and want simple version control without manual exports.
A schedule runs every 45 minutes. The n8n node pulls all workflows. SplitInBatches handles them one by one. The system checks Gitea to see if a file already exists. If it does not exist, it creates it. If it exists, it encodes the new content and compares using a change check. Updates use the file SHA so only changed workflows are committed. Globals hold the repo URL, owner, and name, and HTTP Request nodes handle GET, POST, and PUT calls to Gitea with a token.
Setup needs a Gitea personal access token and an n8n API credential. Enter the repo details in the Globals node, then connect the credentials to the three Gitea request nodes. Run a test and confirm files appear and update as you change flows. Expect less manual work, clear history, and faster recovery after mistakes. Great for IT teams, platform owners, and any group that must track automation changes.