Going Fishing with Superpowered Git Hooks

By Thomas Rayner

Elevator Pitch

If all you do with Git is add, commit, push, and merge, then you’re missing out on a world of functionality. There are so many opportunities to customize Git to increase productivity and automate CI/CD related actions. It’s time to unlock the phenomenal power of Git hooks and put Git to work!

Description

Wouldn’t it be cool to reject a push if it doesn’t meet your standards before it even landed in the remote? What about checking a commit for PSScriptAnalyzer violations before it even makes it into your Git log? You can do all this and more with Git hooks. In this session, we’ll cover some tangible examples of how Git hooks are used in the wild for you to bring back to your job immediately.

Notes

This is something I’ve had a ton of success with on my team at Microsoft, and is something that others in the community and in the industry don’t talk much about, but could be leveraging in big ways on their teams and projects.