貼文討論:Git 入門上手教材:第3課 ── 學會 git 版本切換



```D:\Git\11052023test>git checkout 0c18d82a15fd93a83ee91e1121651fc80baeeee7 Note: switching to '0c18d82a15fd93a83ee91e1121651fc80baeeee7'.

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

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 0c18d82 index

D:\Git\11052023test>git log commit 0c18d82a15fd93a83ee91e1121651fc80baeeee7 (HEAD) Author: Steven Ma <@gmail.com> Date: Sun Nov 5 20:10:20 2023 +0800

index

commit f76265b33aa49b68be8e9edf2b5fc4430b474643 Author: Steven Ma <@gmail.com> Date: Sun Nov 5 20:08:51 2023 +0800

README

commit 227584493e0df5943d82977c128612a890ee33d0 Author: Steven Ma <@gmail.com> Date: Sun Nov 5 19:50:25 2023 +0800

add one more work

commit 0dae59b03be7670dd460e97f8dd1f903e2e722a5 Author: Steven Ma <@gmail.com> Date: Sun Nov 5 19:48:34 2023 +0800

add another work

```


此人尚未填寫簡介。