AI engineering glossary · Command line Git

What is amend?

Amend (also called Commit amend): Modifying the most recent commit, by adding forgotten changes or correcting its message, so it replaces the previous commit instead of adding another one. It rewrites history, so avoid it after publishing the commit.

Level: intermediateTopic: Command line Git

Amend: an example

git commit --amend -m 'Fix typo in README' changes the last commit message.

Related terms

More Command line Git terms

Where you learn it

Amend is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.