DEV Community 👩‍💻👨‍💻

Discussion on: Is git commit --amend truly *important*?

scanepa profile image
Stefano Canepa

I don't know if this correct or not but I usually use git commit --amend if the commit contains a change that is really part of the previous one, to deploy some services I have to change their configuration files but I forget one so I amend my commit.
When I'm developing I prefer to make more commits, one per change and then, squash merge the resulting PR (if I have write access to the repo) or squash-merge before opening the PR upstream.