Automate Git Add, Commit, Logs & Push Workflow

Streamline Git operations by automating file addition, committing changes with a message, retrieving commit logs, and pushing to a remote repository using n8n's Git node.

n8n
Automate Git Add, Commit, Logs & Push Workflow

This n8n workflow demonstrates practical use of the Git node to manage repository changes in a simple, linear automation. Starting with a manual trigger, it adds a specified file (default: README.md) to the staging area, commits the changes with a custom message like '✨ First commit from n8n', fetches recent commit logs for verification, and finally pushes everything to the remote repository. All Git nodes reference the same repository path dynamically from prior steps, ensuring seamless execution.

The primary benefits include reducing manual Git CLI commands, minimizing errors in repetitive tasks, and enabling integration into broader CI/CD pipelines or scheduled automations. It's ideal for developers, DevOps teams, or anyone maintaining multiple repos, saving time on version control basics and allowing focus on coding.

Use cases span from initial repo setup (e.g., auto-adding docs), daily change management in projects, to embedding in larger workflows like post-deployment hooks or content updates. Customize by changing the file path, commit message, or adding branches/tags for advanced scenarios. With just 5 nodes, it's beginner-friendly yet extensible for production use.

$9.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related HR & Operations workflows

More from Saskia Kowalczyk

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.