एक detached HEAD तब हुन्छ जब HEAD सीधै एक commit मा औँठेको हुन्छ, शाखा मा होइन। यो एक सामान्य अवस्था हो (त्रुटि होइन) जो तपाइँ विशिष्ट commit, tag, वा रिमोट commit को checkout गर्दा हुन्छ — तर यसमा commit गर्न खतरनाक हुन सक्छ, त्यसैले यो बुझ्न महत्वपूर्ण छ।
HEAD सामान्यतः कहाँ औँठेको हुन्छ
NORMALLY: HEAD → a BRANCH (e.g. main) → a commit
→ when you commit, the branch pointer advances, and HEAD follows it
DETACHED: HEAD → directly to a COMMIT (not through a branch)
→ you're "not on any branch" — looking at a specific commit
