git Git Hooks with Python Git hooks have long provided the ability for you to validate commits, perform continuous integration, continuous deployment and any number of other arbitrary actions. Git hooks are often run as a bash script.