/delete-git-branches-tool

A tool to delete local and remote git branches in batch.

Primary LanguageShell

delete-git-branches-tool

A tool to delete local and remote git branches in batch.

Overview

a b

Install

git clone https://github.com/Stanlous/delete-git-branches-tool.git
cd delete-git-branches-tool
sh install.sh # root permission is required

Usage

# delete branches that contain 'test' in the branch name
rm-branch -k test | rm-branch --key test  |  rm-branch --key=test 

# delete branch1、branch2、branch3
rm-branch branch1 branch2 branch3

# force delete branches that contain 'test' in the branch name
rm-branch -f --key test |  rm-branch --force --key test

License

MIT