You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ or greater.
14
14
15
15
Installation is as simple as running the following command (if you see `EACCES` error, reading [fixing npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) may help):
16
16
17
-
```
17
+
```sh
18
18
npm install -g commitizen
19
19
```
20
20
@@ -26,7 +26,7 @@ Simply use `git cz` or just `cz` instead of `git commit` when committing. You ca
26
26
27
27
_Alternatively_, if you are using **NPM 5.2+** you can [use `npx`](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) instead of installing globally:
28
28
29
-
```
29
+
```sh
30
30
npx cz
31
31
```
32
32
@@ -53,19 +53,19 @@ For this example, we'll be setting up our repo to use [AngularJS's commit messag
53
53
54
54
First, install the Commitizen cli tools:
55
55
56
-
```
56
+
```sh
57
57
npm install commitizen -g
58
58
```
59
59
60
60
Next, initialize your project to use the cz-conventional-changelog adapter by typing:
@@ -187,19 +187,19 @@ It may also make sense to change your README.md or CONTRIBUTING.md to include or
187
187
188
188
Install `commitizen` globally, if you have not already.
189
189
190
-
```
190
+
```sh
191
191
npm install -g commitizen
192
192
```
193
193
194
194
Install your preferred `commitizen` adapter globally, for example [`cz-conventional-changelog`](https://www.npmjs.com/package/cz-conventional-changelog)
195
195
196
-
```
196
+
```sh
197
197
npm install -g cz-conventional-changelog
198
198
```
199
199
200
200
Create a `.czrc` file in your `home` directory, with `path` referring to the preferred, globally installed, `commitizen` adapter
0 commit comments