What is the purpose of git commit –amend?

Git Medium

Git — Medium

What is the purpose of git commit –amend?

Key points

  • Modifies the existing commit rather than creating a new one
  • Enables changing the commit message for clarity
  • Allows adding new changes to the previous commit
  • Saves commit history from unnecessary amendments

Ready to go further?

Related questions