Get startedGet started for free

Reverting a commit

You have added one more row of participant data to mental_health_survey.csv. However, you've now realized that you put the data in the wrong order.

In this exercise, you will revert the state of your repo to that of the previous commit.

This exercise is part of the course

Introduction to Git

View Course

Exercise instructions

  • Revert mental_health_survey.csv to the state in the last commit, using an appropriate flag to avoid opening the text editor.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise