Git Commit Practices

The cluster debates the best practices for git commits, focusing on whether developers should make small, frequent commits or larger ones, with discussions on code review, hygiene, and workflow efficiency.

➡️ Stable 0.6x DevOps & Infrastructure
4,138
Comments
19
Years Active
5
Top Authors
#5179
Topic ID

Activity Over Time

2008
18
2009
47
2010
66
2011
127
2012
130
2013
169
2014
143
2015
157
2016
262
2017
170
2018
156
2019
221
2020
292
2021
426
2022
488
2023
333
2024
429
2025
484
2026
20

Keywords

archive.com sourceforge.net BS CI CD IDE GitHub PR www.mail UI commits commit git frequent code merge branches fixes branch bug fixes

Sample Comments

Have you considered making smaller, more frequent commits.

mbrock • Feb 28, 2016 • View on HN

What's wrong with a single commit for a feature?

timrosenblatt • Aug 13, 2015 • View on HN

Is "more frequent commits" really a good thing?

jlgreco • Mar 24, 2013 • View on HN

...you really should not be going days between commits...

google234123 • Jan 28, 2020 • View on HN

This is not good practice in many circumstances. Large commits are very hard for others to review.

singpolyma3 • Sep 25, 2025 • View on HN

If the commits don't matter why did you make them separate to begin with?

TheCraiggers • Sep 30, 2025 • View on HN

That's just bad git hygiene, and lots of lead devs deal with this across the development world. One change per commit/PR please.

Daviey • Oct 20, 2014 • View on HN

Rest assured, anyone not committing (or stashing) often and squashing down is doing it wrong.

sulam • Aug 5, 2022 • View on HN

Large commits are an antipattern that should be reworked, in code review at worst.

chris_wot • Apr 11, 2018 • View on HN

Is it really that many developers who don't split up their code into seperate commits?