Skip to main content

git-branch-cleaner

Delete merged git branches. That's it.

Installation

pip install git-branch-cleaner

Usage

Delete local branches merged to main and older than 30 days:

branch-cleaner

Delete branches older than 7 days:

branch-cleaner --days 7

See what would be deleted without actually deleting:

branch-cleaner --dry-run

Include remote branches:

branch-cleaner --remote

Use a different base branch:

branch-cleaner --base develop

Protected Branches

The following branches are protected and will never be deleted:

  • main
  • master
  • develop
  • dev
  • staging
  • production

License

MIT

Release files for gitbranch-clean 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitbranch-clean 1.0.0
File Size Uploaded
gitbranch_clean-1.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitbranch-clean 1.0.0
File Interpreter ABI Platform
gitbranch_clean-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / gitbranch_clean-1.0.0.tar.gz

Download URL gitbranch_clean-1.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b3d8de474b36e3fc60130035993760c57baddf72b558454483711c95f168ab1f
BLAKE2b-256 checksum
How to use checksums
491b0c78d949442a42e87f00144165691f2adab7349baaf031f33e5efe9a80e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release files / gitbranch_clean-1.0.0-py3-none-any.whl

Download URL gitbranch_clean-1.0.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
363250d001b23f3e0949ebc94993cb55e46d95ae765c6b0722c8b7254e6596fa
BLAKE2b-256 checksum
How to use checksums
cbc23ddff78ba767687263ca89719b16697cc15a1d103ab3f28b806a3014e964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page