datalad-handbook/docs/basics/_examples/DL-101-137-122
2025-03-13 08:20:26 +01:00

21 lines
734 B
Text

$ git checkout d0e83f29✂SHA1
warning: unable to rmdir 'midterm_project': Directory not empty
Note: switching to 'd0e83f29✂SHA1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at d0e83f2 add note about cloning from paths and recursive datalad get