Git Tutorial - Git Hooks Crash Course

preview_player
Показать описание
Git Tutorial - Git Hooks Crash Course - For Beginners

In this tutorial, we are going to cover git hooks and why you should be using them. Mainly, client-side git hooks.

Read the full blog post at

Like our content ? Please help support us by giving us a like and subscribe to our channel to stay up to date as we will be releasing weekly tutorials. Let me know in the comments below if you want me to cover a specific topic.

Follow us

Chapters
0:00 Introduction
0:07 What are git hooks?
2:27 Why use git hooks?
3:25 Client-side hooks - Getting started
6:55 VS Code - Show .git folder
7:56 Git remote repository - Add remote origin
9:00 pre-commit hook
11:34 commit-msg hook
14:20 pre-push hook
18:39 Final Notes
Рекомендации по теме
Комментарии
Автор

Good and undertandable tuto. You did not talk about remote hooks

kouameyaojean
Автор

Hi Emad - Nice explanation, easy to understand.. !
I have a query, can u pls help !
I have a request for pre-commit hooks with 2 parameters to pass. Could you please help !

1. If the file size being committed is more than max file size =1024kb/1mb, git should prevent the file(s) from commit.
2. Comma separated file paths. If the files committed are separated by commas (e.g: c:\my folder\my files, c:\my folder\my files1), git should prevent the files from commit.

tennyson