Skip to content

Commit 5209874

Browse files
committed
update README.md
1 parent ba8a247 commit 5209874

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

README.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,46 @@ $ go get github.com/linyows/git-semv
2525
Usage
2626
--
2727

28+
Show list:
29+
2830
```sh
29-
$ git semv current
30-
v1.2.3
31-
$ git semv bump
32-
v1.2.4
33-
$ git semv --minor bump
34-
v1.3.0
35-
$ git semv --major bump
36-
v2.0.0
37-
$ git semv --major --pre bump
38-
v2.0.0-rc.0
31+
$ git semv list
32+
v1.2.1-alpha.0
33+
v1.2.0
34+
v1.2.0-rc.1
35+
v1.2.0-rc.0
36+
v1.2.0-beta.0+ba8a247.foobar
37+
v1.2.0-alpha.0+a2a784b.anonymous
38+
v1.1.0
39+
v1.0.1
40+
v1.0.0
41+
```
42+
43+
Show latest version:
44+
45+
```sh
46+
$ git semv now
47+
v1.2.0
3948
```
4049

50+
Show next version:
51+
4152
```sh
42-
$ VER=$(git semv bump)
43-
$ git tag $VER && git push origin $VER
53+
# with pre-release option
54+
$ git semv patch --pre
55+
v1.2.1-alpha.1
56+
# specify pre-release name option
57+
$ git semv patch --pre-name beta
58+
v1.2.1-beta.0
59+
# next minor version
60+
$ git semv minor
61+
v1.3.0
62+
# with bump option
63+
$ git semv minor --bump
64+
git tag v1.3.0 && git push origin v1.3.0
65+
# next major version with build option
66+
$ git semv major --pre --build
67+
v2.0.0-alpha.0+9125b23.linyows
4468
```
4569

4670
Contribution

0 commit comments

Comments
 (0)