oneuptime/git-hooks
2020-09-14 08:22:58 +01:00
..
pre-commit fix redme. 2020-09-11 12:40:15 +09:00
README.md Merge branch 'master' of https://gitlab.com/fyipe-project/app into feature-custom-tutorial 2020-09-14 08:22:58 +01:00

Hooks

Like many other Version Control Systems, Git has a way to fire off custom scripts when certain important actions occur. Hooks are triggered by operations such as committing and merging.

This project has a git pre-commit hook that automatically runs when you execute git commit. This pre-commit is responsible for linting the project. This is one of the ways to be sure any code git committed has been linted properly.

Enable git hooks

Run these command in your terminal from the root of this project.

root="$(pwd)"
ln -s "$root/git-hooks" "$root/.git/hooks"