pre-commit: add page (#5314)

translation-badges
Hugh Wimberly 2021-03-02 04:11:46 -08:00 committed by GitHub
parent f4fc3f06da
commit c3b00af379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# pre-commit
> Create Git hooks that get run before a commit.
> More information: <https://pre-commit.com>.
- Install pre-commit into your Git hooks:
`pre-commit install`
- Run pre-commit hooks on all staged files:
`pre-commit run`
- Run pre-commit hooks on all files, staged or unstaged:
`pre-commit run --all-files`
- Clean pre-commit cache:
`pre-commit clean`