✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Let's say we have the following git history:
* abc123 (HEAD) Commit message for the oldest commit
* def456 Commit message for second-to-last commit
* xyz789 Commit message for third-to-last commit
What command should we first run to remove the commit with the hash xyz789?