Exercise

Undoing changes to unstaged files

git reset is useful for unstaging files, but what if you need to undo changes made to a file that is not in the staging area?

You've been working on the report.md file, starting a discussion about the results of the project. You've not yet saved the file, and have just realized that the summary statistics changed with the addition of the last participant's data. As a result, your discussion is no longer accurate and you'd prefer to start over.

Your task is to use a Git command that will discard the changes made to report.md and allow you to start over on the discussion section.

Instructions

100 XP
  • Undo the changes made to report.md.