Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How often do you commit?

I see some people make commits with like 500 changes in one commit, meanwhile I commit after most changes and have tons of commits. So for those of you who use some form of git repository when coding, how often do you commit?
I personally commit after I write another functional piece of code. I usually write a function/method (or a few of them, if they go hand in hand), test it, then commit. I tend to push my code after every commit as well.
[Image: QmUOY2P.png]
I commit every code block revision. So, if I add a new major block, I commit. If I revise it, I commit. I try to isolate it to one block at a time for easier rollbacks.
I commit whenever I finish a piece of code that works. Or whenever I need to fix a bug.
[Image: wOdD4yf.gif]
I commit on bug fixes and feature additions. I should commit more, but I just feel like anything too small is cluttering up the commit history. I dunno.
I always commit when new functionality was added, some bug was fixed or something else has changed. Yes, this will result in hundreds of commits within big projects, but this is actually how Git should be used.

In the past, I sometimes made one commit for each new version, but that's really not a good idea. Also, when working within a team, small and comprehensible commits are important.
Want to contact me? Just leave me a message at [email protected]
Ofcourse OTR is preferred, but it isn't necessary!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Legends] by DystortionAug 17, 2025 04:04 AM 16 624 Aug 17, 2025 04:04 AM
Last Post: Dystortion
by HackersJun 4, 2024 11:18 AM 12 319 Jun 4, 2024 11:18 AM
Last Post: Hackers
by MavenGradleApr 15, 2023 07:38 AM 14 453 Apr 15, 2023 07:38 AM
Last Post: MavenGradle