I this video I'll show how to use Git hooks and prevent pushing broken code to a remote server. There are a couple hooks you can use: pre-push and pre-commit. In this video, we will use pre-push. We will use NPM package - husky, which simplifies our work. You can use this Git hook example in your work to speed up the development process and reduce the number of bugs.
🔥 Best Git books:
Pro Git by Scott Chacon , Ben Straub (2nd ed. Edition) (Amazon) https://amzn.to/4eovmLi
Learning Git: A Hands-On and Visual Guide to the Basics of Git by Anna Skoulikari (1st Edition) (Amazon) https://amzn.to/45oV8e2
Version Control with Git: Powerful tools and techniques for collaborative software development by Jon Loeliger (2nd Edition) (Amazon) https://amzn.to/45oV9P8
ESLint configuration - • ESLint React configuration. Clean cod...
JSCPD configuration - • Copy/Paste detector JSCPD
If you like this video, follow my profiles:
INSTAGRAM ↣ / travels_code
TWITTER ↣ / travelscode
FACEBOOK ↣ / travelscode
WEB-SITE ↣ http://travelscode.com/
GITHUB ↣ https://github.com/MaksymRudnyi/
#git #learn_git #clean_code