git reflog bilježi gdje je HEAD vaše grane bio — svaki commit, checkout, reset, rebase, itd. To je sigurnosna mreža za oporavak "izgubljenih" commita (nakon lošeg reseta, rebaziranja ili brisanja grane) koji izgledaju izbrisani ali su i dalje oporavivi.
Što je 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.
