git commit -m "lots of changes"

Posted on 10 February 2020. Tagged with web development, git

I use Git for most of my projects. I'm on board with the general idea of careful version control, and I'm pretty comfortable with the basic commands.

But when I'm working on a project by myself, I often find myself working on a project for a few hours, fixing a bunch of different things, then typing:

$ git add .
$ git commit -m "lots of changes"
$ git push

This is the wrong approach. I'm a cowboy coder!

I need to be more thoughtful about:

I need to move away from "ok I'm done, let's hit Control+S and get out of here".

I need to build commits that describes what I'm working on in case anyone else wants to review.

Anyway, this is just me convincing myself to care more about this.

Strategies for getting better at this

If you have any helpful tips, send them my way. Or even better, share them publicly on Twitter.

I don't have comments on my blog yet. Tell me what you think on Twitter.