BASE

Git Machete

Git Machete

Developer CLI · Free

A CLI for managing dependent Git branches: it displays a branch tree and helps consistently rebase and update change chains.

Also known as: virtuslab/git-machete; git-machete; gitmachete

Resource illustration: Git Machete

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Coordinate a chain of dependent Git branches
  • Inspect branch state and coordinate a chain rebase or update

Example workflow

A possible workflow; this is not a report of hands-on testing.

Coordinate a chain of dependent Git branches.

Before you start

  • Project files or environment.
  • A shell and supported platform.

Steps

  1. Define the branch tree and check dependencies between current changes.
  2. Inspect branch state and coordinate a chain rebase or update.
  3. Save the working command or script and the result criteria.

Check your result

  • The command correctly handles paths, Unicode, and invalid inputs.
  • Repeat runs behave predictably; credentials do not appear in the output.

Choosing Git Machete

Coordinate a chain of dependent Git branches

Choose this when

  • Coordinate a chain of dependent Git branches
  • Inspect branch state and coordinate a chain rebase or update

Requirements

  • The README specifies Python 3.6+; a token with GitHub repo scope or GitLab api scope is needed for private repositories and change operations such as create-pr/create-mr.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Interactive go and noninteractive navigation have different platform boundaries; a branch graph alone does not resolve conflicts.

Frequently asked questions

What can you use for free in Git Machete?

Code and local use under MIT.

What additional costs might arise with Git Machete?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Git Machete?

MIT for the code; dependencies have separate licenses.

How do you get started with Git Machete?

Define the branch tree and check dependencies between current changes. Inspect branch state and coordinate a chain rebase or update. Save the working command or script and the result criteria.

What does Git Machete show, and what limits apply to interactive navigation?

Git Machete shows branch dependencies and state relative to the parent branch; red indicates lack of synchronization with the parent. traverse guides sequential rebase/merge/push/pull. Interactive go does not work on Windows, where explicit down, next, prev, and up commands are available. GitHub/GitLab operations have separate token requirements.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Git Machete
  • CLI
  • Development

Sources

Other resources