Automate Your Workflow with #git Hooks
▻https://hackernoon.com/automate-your-workflow-with-git-hooks-fef5d9b2a58c?source=rss----3a8144e
Git hooks are one of the most underrated git features, and have the potential to increase your productivity as a developer. Have you ever wanted to run a command every time you commit or push? Lucky for you, that’s exactly what git hooks do — they’re custom scripts that run before or after git commands to automate manual tasks. Read on to find out how hooks could improve your workflow.Why use git hooks?I came to learn about hooks after embarking on a quest to automate my own workflow. You see, for better or worse, I make use of FIXME: comments in my code to remind myself to revisit something. My usual process involved doing a global search for “FIXME:” before committing, however I’m sure you can already see plenty of room for human error.Hooks came to my rescue. I was able to create a simple (...)