Complete the command to revert the last commit safely.
git [1] HEADThe git revert command safely undoes a commit by creating a new commit that reverses the changes.
Complete the command to revert a specific commit by its hash.
git revert [1]To revert a specific commit, use its commit hash like abc1234.
Fix the error in the revert command to undo the last commit safely.
git [1] HEADThe correct command to safely undo a commit is git revert. Using reset changes history unsafely.
Fill both blanks to revert the last two commits safely.
git revert [1] [2]
To revert the last two commits, revert HEAD~1 and HEAD in order.
Fill all three blanks to revert a merge commit without auto-committing.
git revert [1] -m [2] [3]
-m without a number.--no-commit with --no-edit.This command reverts commit abc1234, specifies parent 1 for merge commits, and uses --no-commit to stage changes without committing immediately.