Git Restore With Reflog

usecase

The aim of this how-to-guide🏁 is to show the restore of data of for example a deleted commit via .

  • stands for REFERENCE LOGS
  • record when the tips of branches and other references were updated in the LOCAL REPO

1. Instructions

  • Run
  • Run
  • the name of the is IRRELEVANT & CUSTOM
  • the is CRUCIAL & FIXED
  • you may have to commit/stash all changes in the working area before creating a detached head
  • e.g.
  • Recover data by placing them somewhere else
  • Return to by
  • Delete the ad-hoc branch by

2. sources

--

--

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com