Reversing

  1. Revert

The git revert command is used to apply revert operation.

git revert commit-ID
  1. Reset

The git reset command is used to reset the changes.

git reset
git reset - - hard or --soft or - - mixed 

Last updated