Git Labs· Module 4 — Correct Mistakes and Recover WorkLab 24 of 36

Recover a Deleted Branch with the Reflog

A hasty clean-up deleted an unpushed branch with two days of work. Find its commits in the reflog, recreate the branch, and publish it before anything else goes wrong.

  • Intermediate
  • 20 min
  • Not rated yet
  • Free

Free with a free account — it runs in your browser, nothing to install.

  • A real environment in your browser
  • You run the commands yourself
  • Your result is checked automatically

In this moduleModule 4 — Correct Mistakes and Recover Work

  1. Restore the Correct Git Layer20 min
  2. Compare Soft, Mixed and Hard Reset30 min
  3. Revert a Shared Production Change25 min
  4. Recover a Deleted Branch with the ReflogYou are here
  5. Clean an Unpublished Branch with Interactive Rebase30 min