What does git commit --amend do after additional changes are staged?
git commit --amend
It directly modifies the repository's first commit.
It replaces the latest commit with a new version containing the staged changes and chosen message.
It deletes all staged changes and preserves the old commit unchanged.
It creates an unrelated new commit after the current tip.