Skip to content

Commit a422949

Browse files
committed
fix: 修复 r 命令
1 parent bd79e4e commit a422949

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## 更新日志
2+
3+
### 1.0.3
4+
5+
- fix: 修复 `r` 命令
6+
7+
### 1.0.2
8+
9+
- `l` 命令变更为 `b`
10+
11+
### 1.0.1
12+
13+
新增 `a cm r p pr pl co cb` 命令
14+
15+
### 1.0.0
16+
17+
发布正式版本

README.md

-11
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,3 @@ $ npm i -g @lxfu/gm
2929
- `gm co branch` : 相当于 `git checkout branch`
3030
- `gm cb branch` : 相当于 `git checkout -b branch`
3131

32-
## 更新日志
33-
34-
### 1.0.2
35-
36-
- `l` 命令变更为 `b`
37-
### 1.0.1
38-
39-
新增 `a cm r p pr pl co cb` 命令
40-
### 1.0.0
41-
42-
发布正式版本

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lxfu/gm",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Git branch manger",
55
"bin": "./bin/index.js",
66
"scripts": {},

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ program
4040
.description("Git commit information")
4141
.action(onCommit);
4242

43-
program.command("r <commit id>").description("Git reset").action(onReset);
43+
program.command("r <commit-id>").description("Git reset").action(onReset);
4444

4545
program.command("p").description("Git push").action(onPush);
4646
program

0 commit comments

Comments
 (0)