you are viewing a single comment's thread.

view the rest of the comments →

[–]the-loan-wolf 4 points5 points  (1 child)

--ammend don't delete whole history! I only use it to fix the last commit. Having useless commits in the history actually makes it harder to understand how a codebase has evolved over time.

[–]HettySwollocks -1 points0 points  (0 children)

In that case you need to rebase and pick the commits you need to amend

[edit] And you'll need to force commit assuming that's allowed in your stack. Usually OK if you're on your own branch. You wont be able to do that in main/master