git reflog a thaifeadann i gcónaí áit a raibh HEAD do bhrainse — gach gealadh, gealadh, athshocraigh, athlódaigh, etc. Is gréasán sábhála é do gealadh ar choimitheantas "caillte" a fhíorú (tar éis drochathshocraigh, athlódaithe lochtach, nó scriosadh brainse) nach bhfuil ar fáil feadh ach atá fós ináisgabhála.
Cad is reflog ann
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.
