This repo contains a sample project as part of a tutorial explaining how to set up Git hooks with Husky.Net.
The tutorial shows you how to use Husky to add a couple of hooks in a .NET project to run the dotnet format
and dotnet test
commands during the Git workflow.
A pre-commit
hook that runs the dotnet format
command to apply code styling rules to any files staged for commit.
A pre-push
hook runs the dotnet test
command to execute the unit tests before new code can be successfully pushed to the remote repository.