git删除合并的分支
git-del-br的Python项目详细描述
用法:
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
您可以找到有关项目here的更多详细信息。
示例:
用于列出自 过去3个月(上次提交是3个月前)
git-del-br -ls -r -t=90
用于删除这些分支
git-del-br -r -t=90
用于列出以dev前缀开头的本地分支
git-del-br -ls -l -pre='dev'
用于删除这些分支
git-del-br -l -pre='dev'
安装:
您可以使用pip install git-del-br从pip安装此文件。
贡献:
分叉项目。从master或gh-pages创建分支,然后 提交一份公关。
许可证:
强大的麻省理工执照。有关详细信息,请检查LICENSE。