Detached HEAD, HEAD'in bir branch yerine doğrudan bir commit'e işaret ettiğinde oluşur. Bu normal bir durumdur (hata değildir) ve belirli bir commit, tag veya remote commit'i checkout ettiğinizde gerçekleşir — ancak bu durumda commit yapmak işinizi kaybetme riski taşır, bu nedenle bunu anlamak önemlidir.
HEAD normalde neye işaret eder
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
