Delete merged git branches. That's it.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitbranch_clean-1.0.0.tar.gz.
File metadata
- Download URL: gitbranch_clean-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d8de474b36e3fc60130035993760c57baddf72b558454483711c95f168ab1f
|
|
| MD5 |
d5adc44cc1df09517b6090db61e0c550
|
|
| BLAKE2b-256 |
491b0c78d949442a42e87f00144165691f2adab7349baaf031f33e5efe9a80e3
|
File details
Details for the file gitbranch_clean-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gitbranch_clean-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
363250d001b23f3e0949ebc94993cb55e46d95ae765c6b0722c8b7254e6596fa
|
|
| MD5 |
467ebc8b9f6d65868c51739fd3f29cc7
|
|
| BLAKE2b-256 |
cbc23ddff78ba767687263ca89719b16697cc15a1d103ab3f28b806a3014e964
|