git-delete-branches
v1.0.1
Published
Batch delete local Git branches that no longer exist on the remote.
Downloads
2
Readme
git-delete-branches
Introduction
A command used to batch delete local Git branches that no longer exist on the remote.
For example, there are three local branches: feature-a
is your current branch and has a remote branch; feature-b
is a branch whose remote branch is already deleted(e.g. pull request is merged); test
is a local branch without any remote branch.
main
* feature-a
feature-b
test
After run the command, the result will be:
* main
feature-a
test
Usage
npx git-delete-branches
or
// globally install
npm install -g git-delete-branches
// usage
git delete-branches
System Requirements
This command is available on the following platforms:
- Linux
- macOS