DEV Community

Discussion on: How to Fix a Typo After You've Already Pushed Your Commit

Collapse
 
aminarria profile image
Amin Arria

Really great of fixing multiple mistakes along the history.

One question, if it's just the latest commit you need to fix why not use git commit --amend?

Collapse
 
bellawoo profile image
Bella Woo

I often like to fixup and then keep going with my work. Then I'll rebase when I feel that I'm at a natural stopping point. But git commit --amend is an option!