prek
Create Git hooks that run before commits. More information: https://prek.j178.dev/reference/cli/.
- Install prek into your Git hooks:
prek install
- Run prek hooks on all staged files:
prek run
- Run prek hooks on all files, staged or unstaged:
prek run
- Clean prek cache:
prek cache clean
- Update prek configuration file to the latest repos' versions:
prek auto-update
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
