Hello everyone! In this article I'll show you how to create a post-commit git hook.
All hooks are stored in folder .git/hooks. At the initial state there are just examples of different type of hooks:
But it is not full list of all possible hooks. They can be written on Python or Bash, but I prefer Python)
Let's create our own. First of all I'll create file .git/hooks/post-commit.
Than I'll add class for my hook and some functions: