git reflog உங்கள் branch இன் HEAD எங்கே இருந்தது என்பதை பதிவு செய்கிறது — ஒவ்வொரு commit, checkout, reset, rebase, முதலியவை. இது "இழந்த" commits களை மீட்டெடுப்பதற்கான (கெட்ட reset, rebase, அல்லது branch deletion க்குப் பிறகு) ஒரு பாதுகாப்பு வலையாகும், அவை போயிவிட்டதாகத் தோன்றினாலும் இன்னும் மீட்டெடுக்கக்கூடியவை.
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.
