Post-commit: simple automated deployment locally using git hook

Let’s grasp the idea how git hooks work # SETTING UP A REPO $: mkdir ~/workspace/simple-hook && cd simple-hook $: git init Initialized empty Git repository in /home/workspace/simple-hook/.git/ $: ls .git HEAD config description hooks info objects refs We are interested about hooks directory. That’s where all the magic happens. Let’s see content of the…