Skip to content

kaylumah/git-hooks-example

Repository files navigation

git-hooks-example

Kaylumah Logo


Description

This repository contains the source code for my article "Using C# code in your git hooks" which you can find here. If you have any questions or comments about the repo or the blog, feel free to reach out over on twitter @kaylumah.

mkdir git-hooks-example
cd git-hooks-example
git init
dotnet new gitignore
dotnet new tool-manifest
dotnet tool install dotnet-script
dotnet tool install dotnet-format
mkdir .githooks
find .git/hooks -type f -exec rm {} \;
find .githooks -type f -exec chmod +x {} \;
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;

License

This repo is licensed under the MIT License