@
julyclyde 其实我没看明白。。我刚做了个实验,不知道是不是您的意思?求详情?
> git log
commit 4fd52040a1945c5b46697b124b2c48993bd309c9
commit 45b8fc798b1670fbe67de6be436ec000f9c50a12
commit e6de0b4e5e2744f9f57376ef0cacf0636fc16e0a
> git checkout e4531c0dca230e8e4299848f96faf1c100d665ce
Note: checking out 'e4531c0dca230e8e4299848f96faf1c100d665ce'.
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 performing another checkout.
HEAD is now at e4531c0... create.html.erb deleted.
> git checkout product
Previous HEAD position was e4531c0... create.html.erb deleted.
Switched to branch 'product'
> git log
commit 4fd52040a1945c5b46697b124b2c48993bd309c9
commit 45b8fc798b1670fbe67de6be436ec000f9c50a12
commit e6de0b4e5e2744f9f57376ef0cacf0636fc16e0a