mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
pre-commit: add page (#5314)
This commit is contained in:
parent
f4fc3f06da
commit
c3b00af379
1 changed files with 20 additions and 0 deletions
20
pages/common/pre-commit.md
Normal file
20
pages/common/pre-commit.md
Normal 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`
|
Loading…
Add table
Reference in a new issue