Getting Started
Husky.Net is a dotnet tool available in nuget repository.
Installation
cd <Your project root directory>
dotnet new tool-manifest
dotnet tool install Husky
dotnet tool install --global Husky
Setup husky for your project
cd <Your project root directory>
dotnet husky install
TIP
With the global installation, you don't need to add the dotnet
prefix to the commands.
Add your first hook
dotnet husky add pre-commit -c "echo 'Husky.Net is awesome!'"
git add .husky/pre-commit
Make a commit
git commit -m "Keep calm and commit"
# `echo 'Husky.Net is awesome!'` will run every time you commit