Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I try to avoid these if I can, I make small, almost atomic commits
When merging they're squashed anyway so it doesn't clutter the git history -
@LotsOfCaffeine This ^^^
I'll go through the list and commit series of files for each feature, or at least break it down a bit, so if it's a big commit with four features... now it's four commits with a commit message for each with roughly the right files for each. (Of course sometimes separating them is impossible)
I like to try to do a commit, then fill out an invoice/timeslip, that way if anybody questions the hours I can just point them to the commit. Like here's where I committed 350 lines of code for X feature at 11:21, and here's where I billed you for it at 11:30. Hard to argue against. -
I agree that making small commits is always helpful. But occasionally I would code for several hours in a single flow that it slips my mind to commit work. @LotsOfCaffeine
-
@iiii I guess it's easier to write list based commit messages using an IDE than terminal.
-
@sbiewald I did not. Just checked. Looks awesome and sth I would definitely use for better commit history.
Thanks! -
@-devpool- during prototyping I do the same yeah, but when I work on code that already exists I try to be clear about what I intended to do with my changes
-
@-devpool- In the case where you don't use -e when running git commit you can simply add several -m "..." which end up in adding all of them line by line (it's easier to use the -e flag tho unless you use Commitizen or OCTO).
-
"List of changes found in changelog for version X"
Changelogs are much more useful to me than git commit history -
mmsk84yMine is "progress". I used "minor improvements" in the past, but the new one is 10 characters shorter :]
Related Rants
What's your go to commit message for a large group of changes that encompasses a variety of features?
Mine is "Major Improvement"
question
commit messages
github