Git Hooks
Git hooks allow you to run custom scripts before or after specific Git commands, which can be useful for automating tasks or enforcing rules in your repository.
#!/bin/sh
# pre-commit hook script
echo "Running pre-commit checks..."
npm run lint
No comments:
Post a Comment