Hands-on task
Investigation notes in detached HEAD
A teammate kept the incident timeline in the repository /root/ir-notes: they checked out an old commit to compare something and committed timeline.md right there. The repository was left in a detached HEAD state — the timeline commit belongs to no branch, and the very first git switch main will lose it. Save it: create a branch incident-42 whose tip is that commit with timeline.md.
- detached HEAD
- git branch
- git switch
- git reflog
- commit references