Undo Master
Part of the Version Control section of Coddy's Terminal journey — lesson 58 of 58.
Challenge
MediumThe folder contains release.txt with content v1.0.
- Initialize the repo on
mainand configure user (Undo Master/undo@coddy.tech). - Stage and commit
release.txtwith the messageAdd release. - Overwrite
release.txtwithbroken, stage, and commit with the messageBad release. - 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
2Getting Started
Initialize A RepositoryThe .git FolderConfigure Your IdentityGit StatusRecap - First Repo8Merging
What Is A MergeFast-Forward MergeThree-Way MergeMerge ConflictsResolve A ConflictRecap - Merge Master11Feature Branch Project
Project OverviewInitialize Main3Tracking Changes
The Staging AreaGit AddGit CommitModifying A Tracked FileGit LogRecap - First Commits6Recipe Site Project
Project OverviewInitialize And Ignore