Skip to content

Commit

Permalink
docs(readme): update note about migrating to husky (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and gtramontina committed Jan 24, 2017
1 parent 42310e9 commit 95f2f5e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ Feel free to reach out if you want to keep maintaining this project.

## Migrating to Husky

To migrate from `ghooks` to `husky`, delete all of your git hooks first by deleting the `.git/hooks` directory (if you have any custom hooks, you should preserve those by deleting all other hooks individually). Then uninstall `ghooks` and install `husky`. Please refer to [this commit](https://github.com/nhsuk/connecting-to-services/commit/06e0d619de1fe7e90c287bcb95a5a7f20710a3ea) as an example.
To migrate from `ghooks` to `husky`, uninstall `ghooks` and install `husky`:

```sh
npm uninstall ghooks --save-dev
npm install husky --save-dev
```

`ghooks` scripts will be automatically migrated and custom hooks will be preserved.

Please refer to [this commit](https://github.com/nhsuk/connecting-to-services/commit/06e0d619de1fe7e90c287bcb95a5a7f20710a3ea) as an example.

# ghooks

Expand Down

0 comments on commit 95f2f5e

Please sign in to comment.