Skip to main content

Git delete merged branches

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-del-br-1.0.5.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file git-del-br-1.0.5.tar.gz.

File metadata

  • Download URL: git-del-br-1.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git-del-br-1.0.5.tar.gz
Algorithm Hash digest
SHA256 64b7078bb088b09611e5b16e1e753051aff2b1ce748e9ae7411cb8e00e8e0342
MD5 67279e539d1ae7be659369040f311996
BLAKE2b-256 bb488cfbe2173bdead03ad1a8cca550debae98c13e62c51ab9c1f5b42d019e75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page