git reflog ले तपाईको शाखाको HEAD कहाँ गएको छ भन्ने कुरा रेकर्ड गर्छ — प्रत्येक commit, checkout, reset, rebase, आदि। यो "हराएको" commits पुनरुद्धार गर्नको लागि (एक खराब reset, rebase, वा शाखा 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.
