Go AGPL-3.0

husky

git hooks made easy

A

automation-co

Dernière activité 1 juin 2026
automation-co/husky

177

étoiles

9

forks

3

issues ouvertes

gitgit-hooksgogolanghookshusky

Ce README est souvent en anglais.

logo

Husky

Build Status Release GitHub go.mod Go version Go Report Card GitHub GitHub issues

Make githooks easy!

Inspired from the husky.js


Husky - Git hooks made easy on go | Product Hunt

Docs

Installation

go install github.com/automation-co/husky@latest

Getting Started

Warning: All husky commands are potentially destructive, they will delete all files in .git/hooks and recreate them from .husky/hooks. If you already have custom hooks in .git/hooks, make sure to create a backup of the hooks before starting to use husky.

You can initialise husky by $ husky init

Make sure you have git initialised

This will make the .husky folder with the hooks folder and a sample pre-commit hook

You can add hooks using

$ husky add <hook> "
  <your commands for that hook>
"

Example

$ husky add pre-commit "
  go build -v ./... 
  go test -v ./...
"

If you have made any other changes in the hooks you can apply them by using $ husky install


Blogs and Resources


Get Familiar with Git Hooks

Learn more about git hooks from these useful resources:


Other Alternatives

If you feel husky does not fulfill your needs you can also check out:


Developed by @automation-co

Projets similaires

Git hooks made easy 🐶 woof!

JavaScriptcommitgithooks
Ttypicode
35,3 k étoiles1,1 k

Fast and powerful Git hooks manager for any type of projects.

Gogitgogolang
Eevilmartians
8,9 k étoiles311

git hooks manager

Gogithook-manager
Ggit-hooks
418 étoiles42