Moving HEAD
suggest changeWhen you run git checkout on a commit (a hash or a ref), Git makes the working directory match that snapshot. Checking out a commit rather than a branch leaves you in detached HEAD.
- Update the files in the working directory to match the
treeinside thecommit. - Point
HEADat the specified hash or ref.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents