

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Undoing Changes
incomplete
2: Git Reset Soft
incomplete
3: Git Reset Hard
incomplete
4: Danger
incomplete
This lesson's interactive features are locked, please to keep using them
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.
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.