Git Hooks Automation

Comments discuss using Git pre-commit, post-commit, and other hooks for automating tasks like code validation, builds, and continuous integration, often as simpler alternatives to external tools or services.

➡️ Stable 0.8x DevOps & Infrastructure
2,984
Comments
20
Years Active
5
Top Authors
#8842
Topic ID

Activity Over Time

2007
1
2008
10
2009
36
2010
48
2011
83
2012
92
2013
127
2014
127
2015
146
2016
141
2017
148
2018
196
2019
186
2020
227
2021
238
2022
254
2023
254
2024
243
2025
381
2026
50

Keywords

dispatch.sr CLI CI TIL PR MVP heroku.com man.sr ScottArbeit GH git commit hooks github hook commits script changes bot auto

Sample Comments

ysavir Feb 15, 2017 View on HN

I don't see a need for Git or Github to do this. Would be simple enough to set up your own Git precommit hook, that can be shared if you like.

lamby Sep 11, 2017 View on HN

You can do this on Github with custom hooks etc. But yes.

pangram Aug 27, 2011 View on HN

Using git with a post-commit hook would work well for this.

scns Mar 23, 2022 View on HN

This one might help: https://github.com/evilmartians/lefthook

guruz Jul 24, 2011 View on HN

The integration with git hooks is an awesome idea.

mongol Jan 27, 2021 View on HN

I think this can be useful to run with git hooks. It can branch off builds etc at commit. For quick and dirty continuous integration.

pestaa Apr 3, 2015 View on HN

How do you manage this repository? Have auto-commits, auto-pushing, auto-anything?

advanderveer May 27, 2015 View on HN

You might wanna checkout out my recent project if you're using Git: https://github.com/timeglass/glass - fully automated using git hooks and file monitoring and 100% offline, no account required

nanidin Jun 9, 2024 View on HN

Can't you use git hooks to automate the manual steps?

tomp Oct 24, 2020 View on HN

There are none. Git (with post-commit hooks) is always a superior solution.