Git Revert Vs Reset

When we use the git revert command, it is added as a new commit to the repo. It does not remove the previous commit which we want to…