File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ Yarn Berry plugin for easy Git Hooks.
4
4
5
5
## Installation
6
6
7
- ``` sh
7
+ ``` console
8
8
yarn plugin import https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-hooks/main/bundles/%40yarnpkg/plugin-git-hooks.js
9
9
```
10
10
11
11
## Usage
12
12
13
13
1 . Create your Git Hooks. We recommend ` .github/hooks ` .
14
14
15
- > ** Warning ** :
15
+ > [ !WARNING ]
16
16
> Make sure they are are executable (` chmod +x ./commit-msg ` )!
17
17
>
18
18
> ``` ansi
@@ -21,18 +21,16 @@ yarn plugin import https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-h
21
21
22
22
2. Specify the path to your Git Hooks directory in `.yarnrc.yml`:
23
23
24
- ```yaml
24
+ ```yml
25
25
gitHooksPath: .github/hooks
26
26
```
27
27
28
28
Now, every time you run ` yarn ` (once packages are installed), your hooks will be configured.
29
29
30
- > ** Note ** :
30
+ > [ !NOTE ]
31
31
> You can check the configuration succeeded with ` git config --get core.hookspath ` .
32
32
33
- ## Docker
34
-
35
- > ** Important** :
33
+ > [ !WARNING]
36
34
> This plugin is not compatible with Docker.
37
35
> To disable, set ` YARN_NO_INSTALL_GITHOOKS=1 ` .
38
36
>
You can’t perform that action at this time.
0 commit comments