Skip to content

Commit

Permalink
docs: improve uninstall instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and nikoladavitkovski committed Sep 5, 2022
1 parent 1109e57 commit b0f8db7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ _For Windows users, if you see the help message when running `npx husky add ...`
### Uninstall

```shell
npm uninstall husky
npm uninstall husky && git config --unset core.hooksPath
```

## Yarn 2
Expand Down Expand Up @@ -373,6 +373,12 @@ export NVM_DIR="$HOME/.nvm"
1. Verify that hook files are executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/<hookname>` to fix that.
1. Check that your version of Git is greater than `2.9`.

## .git/hooks/ not working after uninstall

If after uninstalling `husky`, hooks in `.git/hooks/` aren't working. Run `git config --unset core.hooksPath`.

Note: this was done automatically by `npm <7` when uninstalling husky, however `preuninstall` is now unsupported.

## Yarn on Windows

Git hooks may fail when using Yarn on Windows with Git Bash (`stdin is not a tty`). If you have users on Windows, it's highly recommended to add the following workaround.
Expand Down

0 comments on commit b0f8db7

Please sign in to comment.