←back to thread

362 points mmphosis | 1 comments | | HN request time: 0.209s | source
Show context
majorbugger ◴[] No.42167110[source]
I don't get the part about the small commits. To me a commit could be massive and that's alright, provided it introduces some major feature, while a fix could a one-liner. It really depends on the situation.
replies(4): >>42167213 #>>42167320 #>>42167335 #>>42167418 #
1. RangerScience ◴[] No.42167320[source]
Large commits are (IMO) a symptom - lack of a plan, a plan that doesn’t work out, etc. Which is fine! You have to figure it all out somewhere.

One thing you can do to address them is to stash the large commit to the side, then piece by piece pull it into a new branch as a series of smaller commits. This also give a good opportunity to refactor before delivery, now that you know what the code is going to do and how.