Moving HEAD

suggest change

When 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.

  1. Update the files in the working directory to match the tree inside the commit.
  2. Point HEAD at the specified hash or ref.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents