workflowstacks
automation

Streamline Git with git-machete

Automate rebase/merge workflows with git-machete, ideal for founders, with 1.1k+ GitHub stars
1,126 stars67 forksPythonHealth Score 9/10Updated 7/27/2026100% free · open source
What it does

Git-machete is a tool that automates git repository organization and rebase/merge workflows, streamlining the process of managing complex git histories.

Install / run
pip install git-machete
When to use it
  • When you need to simplify a complex git history with many merges and rebases
  • When you want to automate repetitive git tasks, such as squashing commits or resolving conflicts
  • When you're working on a large project with multiple collaborators and need to enforce a consistent git workflow
Quick start
  1. 1Initialize git-machete by running `git machete init` in your repository
  2. 2Configure git-machete by editing the `.gitmachete` file, which defines the workflow and rebasing rules
  3. 3Use `git machete status` to view the current state of your repository and identify any conflicts or issues
  4. 4Run `git machete rebase` to automatically rebase and squash commits according to your configured workflow
  5. 5Use `git machete merge` to merge branches and enforce a consistent merge strategy
Ready-to-paste prompt
git machete rebase -i --squash-commits --resolve-conflicts
Heads up: Make sure you have a clean git repository with no uncommitted changes before running git-machete, as it will modify your repository's history and may overwrite local changes
Saves to your device

Topics

cli
git
merge
rebase
How Streamline Git with git-machete works
Codeflow
Free to inspect

Streamline Git with git-machete is a large Python project (~20k lines across 123 code files, plus 65 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, MIT license, has a test suite.

Size
Large codebase
~20k lines · 123 code files · ~3 h to skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python
No API keys detected
Python 91%Shell 9%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    git_machete/cli.py
    Where the program starts running
  4. 4
    git_machete/__init__.py
    Inside git_machete/ — the main logic begins here
What's in each folder
git_machete/Core code — the actual logic48 files
skills/Prompts, skills & agent definitions1 files
docs/Documentation74 files
ci/Folder77 files
blogs/Folder27 files
requirements/Folder13 files
completion/Folder4 files
hook_samples/Folder4 files
READMEHas testsDocumentedCI checksMIT licenseUpdated this month
Quick Actions
Details
Creator
VirtusLab
Language
Python
Category
automation
Published
2/24/2018

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.