If you want to use git hooks, you need to install hooks first! Install git-hooks export GO111MODULE="on" go get -u github.com/git-hooks/git-hooks Install hooks run git hooks install