File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
book/02-git-basics/sections Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 235
235
[source,console]
236
236
----
237
237
$ git checkout 2.0.0
238
- 注意: 正在检出 '2.0.0'。
238
+ Note: checking out '2.0.0'.
239
239
240
- 您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以通过另外
241
- 的检出分支操作丢弃在这个状态下所做的任何提交。
240
+ You are in 'detached HEAD' state. You can look around, make experimental
241
+ changes and commit them, and you can discard any commits you make in this
242
+ state without impacting any branches by performing another checkout.
242
243
244
+ If you want to create a new branch to retain commits you create, you may
245
+ do so (now or later) by using -b with the checkout command again. Example:
243
246
244
- 如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在检出命令添加
245
- 参数 -b 来实现(现在或稍后)。例如:
247
+ git checkout -b <new-branch>
246
248
247
- git checkout -b <新分支名>
248
-
249
- HEAD 目前位于 99ada87... Merge pull request #89 from schacon/appendix-final
249
+ HEAD is now at 99ada87... Merge pull request #89 from schacon/appendix-final
250
250
251
251
$ git checkout 2.0-beta-0.1
252
252
Previous HEAD position was 99ada87... Merge pull request #89 from schacon/appendix-final
You can’t perform that action at this time.
0 commit comments