Problem Statement
When would you use `git commit --amend` and what are the risks?
Explanation
Use it to fix the last commit’s message or add missed changes. It rewrites history, so avoid amending commits already pushed/shared.
Practice Sets
This question appears in the following practice sets:
