git reflog रेकॉर्ड करते की तुमच्या branch चे HEAD कोठे गेले आहे — प्रत्येक commit, checkout, reset, rebase, इत्यादी. हे हरवलेल्या "commits" पुनर्प्राप्त करण्यासाठी (एखाद्या वाईट reset, rebase किंवा branch deletion नंतर) एक safety net आहे जे गेल्यासारखे दिसतात पण अजूनही पुनर्प्राप्त करण्यायोग्य आहेत.
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.
