We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Undoing Changes

One of the major benefits of using Git is the ability to undo changes. There are a lot of different ways to do this, but first, we'll start by going back in the commit history without discarding changes.

Assignment

The new intern at Webflyx tried to add his favorite movie to the titles.md file, but overwrote the entire file by mistake!

You can do so with this command:

echo "* The Internship" > titles.md

Run and submit the CLI tests.

If you have disabled clobbering and get an error saying the file already exists, use the >| operator instead of > to forcibly truncate the file.