pre-commit logo

pre-commit

A slightly improved pre-commit hook for git
687
43
+ 1
0

What is pre-commit?

pre-commit checks your code for errors before you commit it. pre-commit is configurable.
pre-commit is a tool in the Git Tools category of a tech stack.
pre-commit is an open source tool with 796 GitHub stars and 96 GitHub forks. Here’s a link to pre-commit's open source repository on GitHub

Who uses pre-commit?

Companies
23 companies reportedly use pre-commit in their tech stacks, including SMARTTechStack, GatewayAPI, and reSolve.

Developers
212 developers on StackShare have stated that they use pre-commit.

pre-commit's Features

  • debugger: make sure you don't commit a debugger statement
  • tabs: make sure your code uses leading spaces instead of tabs
  • whitespace: make sure you don't commit trailing whitespace
  • jslint: syntax check your javascript before you commit it
  • ci: run a quick test suite before you commit

pre-commit Alternatives & Comparisons

What are some alternatives to pre-commit?
Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
GitHub
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
Visual Studio Code
Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.
Docker
The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
npm
npm is the command-line interface to the npm ecosystem. It is battle-tested, surprisingly flexible, and used by hundreds of thousands of JavaScript developers every day.
See all alternatives

pre-commit's Followers
43 developers follow pre-commit to keep up with related blogs and decisions.