mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 07:46:09 +00:00
Update cheatsheets
This commit is contained in:
25
pre-commit
Normal file
25
pre-commit
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user