To activate the hooks, rename the existing *.sample file, by removing the .sample
extension
The following example shows how to run a powershell script as a githook
the hooks can be found in your repo directory under .git/hooks/
pre-commit
#!/bin/sh
pwsh -ExecutionPolicy RemoteSigned -File '.git\hooks\pre-commit.ps1'
pre-commit.ps1
command to run / code to execute