Challenge: Reflog

Test your understanding of reflog by completing this challenge.

We'll cover the following

Problem statement#

Initialize a repository, and create two commits on the main branch. Create a new branch, and create another commit on it. Remove commit from the new branch. Then, restore that commit.

Terminal 1
Terminal

Click to Connect...

Solution#

Click the “Show Solution” button to learn about the solution.

Lose a Commit, Get it Back
Introduction: Cherry-Picking
Mark as Completed
Report an Issue