Clean up stale git branches safely
npm install deadbranchThis is the npm distribution package for deadbranch, a CLI tool to clean up stale git branches safely.
``bash`
npm install -g deadbranch
Or run directly with npx:
`bash`
npx deadbranch list
When you install this package, it automatically downloads the appropriate pre-built binary for your platform from GitHub Releases. Supported platforms:
- macOS (Intel & Apple Silicon)
- Linux (x64 & ARM64)
- Windows (x64)
If npm installation fails, you can install deadbranch using other methods:
bash
curl -sSf https://raw.githubusercontent.com/armgabrielyan/deadbranch/main/install.sh | sh
`$3
`bash
cargo install deadbranch
`$3
`bash
brew install armgabrielyan/deadbranch/deadbranch
`Usage
`bash
deadbranch list # List stale branches
deadbranch clean # Delete merged stale branches
deadbranch clean --dry-run # Preview what would be deleted
``For more information, see the full documentation.
MIT