

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
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!
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.
The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run bb5f3005-894f-4d2f-80d1-75f4f143dd0d
Submit
bootdev run bb5f3005-894f-4d2f-80d1-75f4f143dd0d -s
To run and submit the tests for this lesson, you must have an active Boot.dev membership
Become a member to view solution
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.