Not every Git commit needs to be called "update"
It's easy to end up with a Git history that looks like this:
update
fix
fix again
changes
final fix
There's nothing stopping you from doing this, especially when you're working on a small personal project.
The problem comes later when you're looking for a particular change and every commit looks pretty much the same.
Writing something slightly more specific helps:
Fix login button on mobile
Remove unused CSS
Add loading message
It doesn't take much longer, and you don't need to follow any complicated naming convention.
Even something like fix navbar spacing is good enough for most small projects.
Of course, not every commit is important. Sometimes you're just testing something or saving unfinished work. That's fine too.
But when a change is worth remembering, giving it a useful description seems like a reasonable thing to do.
Your Git history doesn't have to be perfect. It just has to be useful.
Top comments (0)