(Git) Commands revert vs. reset

git reset <COMMIT_HASH> undoes all the changes committed after the commit designated by the <COMMIT_HASH> argument.

git revert <COMMIT_HASH> undoes only the changes in the designated commit.

References:

Written on June 27, 2022