1. Reset the repository’s head to the previous commit