git-trim
« Back to VersTracker
Description:
Trim your git remote tracking branches that are merged or gone
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git branch-cleanup developer-tools productivity git-workflow
Install: brew install git-trim
About:
GitTrim is a command-line utility that automatically cleans up local and remote tracking branches that have been merged or deleted from the remote repository. It helps maintain a clean and manageable Git workspace by identifying branches that are safe to remove, reducing clutter and confusion in your development workflow.
Key Features:
  • Automatically detects merged and deleted remote tracking branches
  • Provides safe cleanup options with preview capabilities
  • Supports multiple Git hosting services (GitHub, GitLab, Bitbucket)
  • Configurable branch preservation rules
Use Cases:
  • Cleaning up stale branches after completing feature development
  • Maintaining a clean repository when working with multiple remotes
  • Automating branch cleanup in CI/CD pipelines
Alternatives:
  • git-delete-merged-branches – Similar functionality but git-trim offers better remote tracking awareness
  • Manual git commands – git-trim automates the tedious process of finding and removing stale branches
Version History
Detected Version Rev Change Commit
Sep 12, 2025 8:11am 0 VERSION_BUMP 526f88d8