pre-commit logo

pre-commit

A slightly improved pre-commit hook for git
1.3K
44
+ 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 789 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
175 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?
hub
hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier.
Git Flow
It provides excellent command line help and output. It is a merge based solution. It doesn't rebase feature branches.
Git-Repo
Control your remote git hosting services from the git commandline. The usage is very simple.
Atlassian Stash
It is a centralized solution to manage Git repositories behind the firewall. Streamlined for small agile teams, powerful enough for large organizations.
TortoiseGit
It is a Git revision control client, implemented as a Windows shell extension and based on TortoiseSVN. It is free software released under the GNU General Public License.
See all alternatives

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