File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 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.
44
55## Installation
66
7- ``` sh
7+ ``` console
88yarn plugin import https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-hooks/main/bundles/%40yarnpkg/plugin-git-hooks.js
99```
1010
1111## Usage
1212
13131 . Create your Git Hooks. We recommend ` .github/hooks ` .
1414
15- > ** Warning ** :
15+ > [ !WARNING ]
1616> Make sure they are are executable (` chmod +x ./commit-msg ` )!
1717>
1818> ``` ansi
@@ -21,18 +21,16 @@ yarn plugin import https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-h
2121
22222. Specify the path to your Git Hooks directory in `.yarnrc.yml`:
2323
24- ```yaml
24+ ```yml
2525gitHooksPath: .github/hooks
2626```
2727
2828Now, every time you run ` yarn ` (once packages are installed), your hooks will be configured.
2929
30- > ** Note ** :
30+ > [ !NOTE ]
3131> You can check the configuration succeeded with ` git config --get core.hookspath ` .
3232
33- ## Docker
34-
35- > ** Important** :
33+ > [ !WARNING]
3634> This plugin is not compatible with Docker.
3735> To disable, set ` YARN_NO_INSTALL_GITHOOKS=1 ` .
3836>
You can’t perform that action at this time.
0 commit comments