Git: Checkout certain commit: & ldquo; Head detached & rdquo; State


I want to go back to a certain commit (not just one file; the whole project). I tried: git checkout 0780033 but then I got the following message:

You are in "detached head" state. You can look around...

And then I am not in actual Branch --> but in branch ((0780033...). I want to "copy" the project at this commit (0780033), to be the newest version.

You could check out this commit to a new branch and work from there:

$ git checkout -b my_new_branch