Skip to main content

git-del-br

GitHub issues GitHub stars GitHub license PyPI

Deleting Merged Branches

Usage:

usage: git-del-br [-h] [-ls] [-r] [-l] [-a] [-t time] [-br branch]
                     [-pre prefix] [-suf suffix]

Tool for deleting remote and local merged branches from Git

optional arguments:
  -h, --help            show this help message and exit
  -ls, --list           Lists the branches (not delete)
  -r, --remote          remove merged branches
  -l, --local           Remove local branches
  -a, --all             Removes both local and remote merged branches
  -t time, --time time  All branches after t-time which the branch is merged
                        (in days) default = -1 means infinite days
  -br branch, --branch branch
                        Branch from which other branches will be analysed
                        (default = current_branch)
  -pre prefix, --prefix prefix
                        Filter branches based on prefix
  -suf suffix, --suffix suffix
                        Filter branches based on suffix

You can find more details about the project here.

Examples:

  • For listing remote merged branches which haven’t been touched since past 3 months (last commit was 3 months ago)

    git-del-br -ls -r -t=90

For deleting those branches

git-del-br -r -t=90
  • For listing local branches which start with dev prefix

    git-del-br -ls -l -pre='dev'

For deleting those branches

git-del-br -l -pre='dev'

INSTALL:

You can install this from pip using pip install git-del-br.

CONTRIBUTION:

Fork the project. Create a branch from master or gh-pages and submit a PR to the same.

LICENSE:

The mighty MIT license. Please check LICENSE for more details.

Release files for git-del-br 1.0.6

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

Source distribution (sdist)

Source distribution for git-del-br 1.0.6
File Size Uploaded
git-del-br-1.0.6.tar.gz 4.9 kB Details

Release files / git-del-br-1.0.6.tar.gz

Download URL git-del-br-1.0.6.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fe106e95f418a29b152665bd00f201a00b31175bc0729ccbd1c390c19fd57924
BLAKE2b-256 checksum
How to use checksums
12316904072c9f0907f527270ab11a7cb935871c58cc2419b8f5ab1e870e6b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

0.0.1

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