Reset and revert are two Git commands that can help back out changes, but they work differently. Reset moves the current branch's position in its history; depending on how it is used, it can also change or discard local work.
Revert makes a new change that undoes an earlier one, leaving the existing history in place. It is often safer when changes have already been shared with other people.
Because reset can remove work, check exactly what it will affect before using it. If you are unsure, make a backup or ask someone familiar with Git first.
