Menu
Coddy logo textTech

Undo Master

Part of the Version Control section of Coddy's Terminal journey. Lesson 58 of 58.

challenge icon

Challenge

Medium

The folder contains release.txt with content v1.0.

  1. Initialize the repo on main and configure user (Undo Master / undo@coddy.tech).
  2. Stage and commit release.txt with the message Add release.
  3. Overwrite release.txt with broken, stage, and commit with the message Bad release.
  4. Realize the mistake. Hard-reset the branch back one commit (HEAD~1) so the bad commit is gone entirely.

Print the total commit count, then the contents of release.txt.

Try it yourself

Terminal

All lessons in Version Control

Practice on your own: Terminal playground