DEV Community

Discussion on: Illustrated Notes on Fixing Git Mistakes

Collapse
 
ricardo profile image
Ricardo Luz

Your post make git looks less scary 😂 thanks for writing this! I never heard about the amend option and it looks very useful mostly to remove private information added accidentally.

Collapse
 
kaddkaka profile image
kaddkaka

Amend is convenient when you want to change something in the lastest commit. If you want to modify earlier commits else you can do fixup-commits that you squash into the original, or do an interactive rebase and (e)dit the concerned commits.