pre-commit Alternatives

Apps similar to pre-commit include Lefthook, which is free and open source. Other options are Husky Git Hooks, Simple Git Hooks and stagelint. In total there are four apps like pre-commit for Linux, Mac and Windows.

Copy a direct link to this comment to your clipboard
Alternatives
pre-commit alternatives page was last updated

Alternatives list

  1. Lefthook icon
     Like

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

    Cost / License

    • Free
    • Open Source (MIT)

    Since

    • Since 2024 (updated Aug 2026)

    GitHub

    • GitHub stars: 8.7k

    Platforms

    • Mac
    • Linux
    Good alternative?
     
  2. Husky enhances your commits and more 🐶 woof! Automatically lint your commit messages, code, and run tests upon committing or pushing.

    Cost / License

    • Free
    • Open Source (MIT)

    Since

    • Since 2024 (updated Mar 2026)

    GitHub

    • GitHub stars: 35.3k

    Platforms

    • Linux
    Good alternative?
     
  3. A simple git hooks manager for small projects.

    Cost / License

    • Free
    • Open Source (MIT)

    Since

    • Since 2024 (updated May 2026)

    GitHub

    • GitHub stars: 1.7k

    Platforms

    • Linux
    Good alternative?
     
  4. stagelint icon
     Like

    stagelint runs linters, formatters and other commands on the files you are about to commit, and stages whatever they fix. It is a single binary written in Rust with no runtime dependency, so the same tool works in Node, Python, Go, Rust, .NET or a polyglot monorepo.

    Cost / License

    • Free
    • Open Source (MIT)

    Since

    • New

    GitHub

    • GitHub stars: 41

    Platforms

    • Windows
    • Mac
    • Linux
    Good alternative?
     
4 of 4 pre-commit alternatives