Exercise

Restoring an old version of a repo

Restoring versions of files can be extremely powerful and useful, particularly if you've made a mistake and can pinpoint when it occurred.

You've been working on the mental health in tech project for a couple of days when you spot an error in the participant data held in mental_health_survey.csv. Since then, you've modified report.md, summary_statistics.csv, and created a references document.

Therefore, you need to restore versions of all of these files to the second to last commit, which is where the error occurred.

Instructions

100 XP
  • Use a command to restore all files to their version located in the commit with a hash starting 7f71eade.