Update README for installation
This commit is contained in:
parent
82870d7bb8
commit
451d503652
13
README.md
13
README.md
|
@ -7,3 +7,16 @@ Tests:
|
||||||
- runs `go vet` on each module
|
- runs `go vet` on each module
|
||||||
- runs `goimports` on all source (excluding generating protobuf `.pb.go` files)
|
- runs `goimports` on all source (excluding generating protobuf `.pb.go` files)
|
||||||
- checks for large (>1MiB) 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`.
|
||||||
|
|
Loading…
Reference in New Issue