File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
book/02-git-basics/sections Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 230
230
231
231
==== 检出标签
232
232
233
- 如果你想查看某个标签所指向的文件版本,可以使用 `git checkout` 命令,虽然说这会使你的仓库处于分离头指针 (detacthed HEAD)状态——这个状态有些不好的副作用:
233
+ 如果你想查看某个标签所指向的文件版本,可以使用 `git checkout` 命令,虽然说这会使你的仓库处于“分离头指针 (detacthed HEAD)” 状态——这个状态有些不好的副作用:
234
234
235
235
[source,console]
236
236
----
@@ -253,7 +253,7 @@ Previous HEAD position was 99ada87... Merge pull request #89 from schacon/append
253
253
HEAD is now at df3f601... add atlas.json and cover image
254
254
----
255
255
256
- 在分离头指针状态下 ,如果你做了某些更改然后提交它们,标签不会发生变化,但你的新提交将不属于任何分支,并且将无法访问,除非确切的提交哈希。因此,如果你需要进行更改——比如说你正在修复旧版本的错误——这通常需要创建一个新分支:
256
+ 在“分离头指针”状态下 ,如果你做了某些更改然后提交它们,标签不会发生变化,但你的新提交将不属于任何分支,并且将无法访问,除非确切的提交哈希。因此,如果你需要进行更改——比如说你正在修复旧版本的错误——这通常需要创建一个新分支:
257
257
258
258
[source,console]
259
259
----
You can’t perform that action at this time.
0 commit comments