LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lefthook

fast and powerful Git hooks manager written in Go

TLDR

Install git hooks
$ lefthook install
copy
Add hook configuration
$ lefthook add pre-commit
copy
Run hooks manually
$ lefthook run pre-commit
copy
Uninstall hooks
$ lefthook uninstall
copy
Generate sample config
$ lefthook dump
copy

SYNOPSIS

lefthook command [options]

DESCRIPTION

lefthook is a fast and powerful Git hooks manager written in Go. It allows running multiple commands in parallel, supports any language for scripts, and provides flexible configuration through YAML files.lefthook is designed to be fast, using parallel execution and smart skipping to minimize hook runtime.

PARAMETERS

install

Install lefthook git hooks.
uninstall
Remove lefthook git hooks.
add hook
Add configuration for a hook.
run hook
Run a hook manually.
dump
Print merged configuration.
version
Show version information.

CONFIGURATION

$ # lefthook.yml
pre-commit:
  parallel: true
  commands:
    lint:
      run: npm run lint
    test:
      run: npm test
copy

INSTALL

brew install lefthook
copy
nix profile install nixpkgs#lefthook
copy

CAVEATS

Requires lefthook.yml in project root. Hooks must be installed after cloning. Parallel execution may cause output interleaving.

HISTORY

lefthook was created by Evil Martians as a fast, polyglot alternative to husky and pre-commit, first released in 2019.

SEE ALSO

git(1), husky(1), pre-commit(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid