DEV Community

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

Collapse
 
fennecdjay profile image
Jérémie Astor

I think it is to late if you already pushed, so in this case, I guess you can only squash/rebase (I'm not a git ninja though).
I have to admit I use --amend quite frequently (I even have an alias, git amend to `git commit --amend --no-edit) because I sometimes forget to stage one file or another in my commit.

Maybe [act](github.com/nektos/act can help you, it allows to run something similar to github CI on your machine, so you can commit, run the CI and amend it if something is wrong.