Skip to content

Commit e36ab26

Browse files
committed
chore(readme): update usage
1 parent b40c9dd commit e36ab26

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Please consider starring the project to show your ❤️ and support.
1414

1515
- Support delete matched branches. e.g.`feat-*`
1616

17-
## Demo
18-
1917
<p align="center">
2018
<img src="https://unpkg.com/@evillt/media/projects/git-delete-branch/main.svg">
2119
</p>
@@ -25,26 +23,31 @@ Please consider starring the project to show your ❤️ and support.
2523
- git
2624
- node.js
2725

28-
## Install
26+
## Usage
27+
28+
One-off usage via `npx`:
2929

30-
```console
31-
yarn global add git-delete-branch
30+
```sh
31+
$ npx git-delete-branch [...branches]
32+
33+
# Example
34+
$ npx git-delete-branch dev test-*
3235
```
3336

34-
## Usage
37+
Using it globally:
3538

36-
Basically:
39+
```sh
40+
$ npm i -g git-dlete-branch
3741

38-
```console
39-
git-db [...branches]
40-
git-delete-branch [...branches]
41-
```
42+
# Or using yarn
43+
$ yarn global add git-delete-branch
4244

43-
Or using git external commands:
45+
$ git-db [...branches]
46+
$ git-delete-branch [...branches]
4447

45-
```console
46-
git db [...branches]
47-
git delete-branch [...branches]
48+
# Or using git external commands
49+
$ git db [...branches]
50+
$ git delete-branch [...branches]
4851
```
4952

5053
## CLI

0 commit comments

Comments
 (0)