From 451d5036527ebef3ff702b1ea85c382d2b0ed896 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sun, 16 Feb 2020 09:49:55 +0000 Subject: [PATCH] Update README for installation --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8831c4d..9ed0bbf 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,16 @@ Tests: - runs `go vet` on each module - runs `goimports` on all source (excluding generating protobuf `.pb.go` files) - checks for large (>1MiB) files + +## Installation + +You can install this commit globally by adding the following to your +`~/.gitconfig`: + +``` +[core] + hookspath = /home/username/git/hooks +``` + +and then copying the executable, named as `pre-commit`, to the directory you +named in `hookspath`.