git reflog καταγράφει όπου ήταν το HEAD του κλάδου σας — κάθε commit, checkout, reset, rebase κ.λπ. Είναι ένα δίχτυ ασφαλείας για την ανάκτηση "χαμένων" commits (μετά από ένα κακό reset, rebase ή διαγραφή κλάδου) που φαίνονται χαμένα αλλά είναι ακόμα ανακτήσιμα.
Τι είναι το reflog
The REFLOG logs every movement of HEAD (and branch tips) in YOUR local repo:
→ every commit, checkout, reset, rebase, merge, etc. is recorded with a reference
→ it's LOCAL and includes commits not reachable from any branch (the "lost" ones)
→ Even if you reset/rebase away commits, reflog remembers where they were.
