{"id":16932925,"url":"https://github.com/tusharmakkar08/git-del-br","last_synced_at":"2025-08-22T09:46:06.661Z","repository":{"id":57434457,"uuid":"62219665","full_name":"tusharmakkar08/git-del-br","owner":"tusharmakkar08","description":"Deleting Merged Branches ","archived":false,"fork":false,"pushed_at":"2019-08-25T18:39:41.000Z","size":32,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:39:04.255Z","etag":null,"topics":["branching","delete","git","git-del"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tusharmakkar08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-29T11:10:42.000Z","updated_at":"2021-03-19T12:37:42.000Z","dependencies_parsed_at":"2022-08-27T23:10:09.503Z","dependency_job_id":null,"html_url":"https://github.com/tusharmakkar08/git-del-br","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharmakkar08%2Fgit-del-br","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharmakkar08%2Fgit-del-br/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharmakkar08%2Fgit-del-br/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharmakkar08%2Fgit-del-br/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharmakkar08","download_url":"https://codeload.github.com/tusharmakkar08/git-del-br/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968249,"owners_count":21025797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branching","delete","git","git-del"],"created_at":"2024-10-13T20:48:03.464Z","updated_at":"2025-04-11T18:41:48.028Z","avatar_url":"https://github.com/tusharmakkar08.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-del-br\n\n[![GitHub issues](https://img.shields.io/github/issues/tusharmakkar08/git-del-br.svg)](https://github.com/tusharmakkar08/git-del-br/issues)\n[![GitHub stars](https://img.shields.io/github/stars/tusharmakkar08/git-del-br.svg)](https://github.com/tusharmakkar08/git-del-br/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/tusharmakkar08/git-del-br/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/git-del-br.svg?maxAge=2592000)](https://pypi.python.org/pypi/git-del-br)\n\n\u003e Deleting Merged Branches\n\n# Usage:\n\n            usage: git_del_br.py [-h] [-ls] [-r] [-l] [-a] [-t time] [-br branch]\n                     [-pre prefix] [-suf suffix] [-re regex]\n\n            Tool for deleting remote and local merged branches from Git\n\n            optional arguments:\n              -h, --help            show this help message and exit\n              -ls, --list           Lists the branches (not delete)\n              -r, --remote          remove merged branches\n              -l, --local           Remove local branches\n              -a, --all             Removes both local and remote merged branches\n              -t time, --time time  All branches after t-time which the branch is merged\n                                    (in days) default = -1 means infinite days\n              -br branch, --branch branch\n                                    Branch from which other branches will be analysed\n                                    (default = current_branch)\n              -pre prefix, --prefix prefix\n                                    Filter branches based on prefix\n              -suf suffix, --suffix suffix\n                                    Filter branches based on suffix\n              -re regex, --regex regex\n                                    Filter branches based on regex\n\n\nYou can find more details about the project [here](http://tusharmakkar08.github.io/git-del-br).\n\n## Examples\n\n* For listing remote merged branches which haven't been touched since past 3 months (last commit was 3 months ago)\n\n            git-del-br -ls -r -t=90\n\n  For deleting those branches\n\n            git-del-br -r -t=90\n\n* For listing local branches which start with `dev` prefix\n\n            git-del-br -ls -l -pre='dev'\n\n  For deleting those branches\n\n            git-del-br -l -pre='dev'\n\n* You can use regex too. For example: For deleting all branches except `release` branch:\n\n        git-del-br -l -re='^(?!release).*'\n\n## INSTALL\n\nYou can install this from pip using `pip install git-del-br`.\n\n## CONTRIBUTION\n\nFork the project. Create a branch from `master` or `gh-pages` and submit a PR to the same. \n\n## LICENSE\n\nThe mighty MIT license. Please check `LICENSE` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharmakkar08%2Fgit-del-br","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharmakkar08%2Fgit-del-br","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharmakkar08%2Fgit-del-br/lists"}