File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
book/02-git-basics/sections Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ $ git commit --amend
42
42
43
43
[source,console]
44
44
----
45
- $ git add .
45
+ $ git add *
46
46
$ git status
47
47
On branch master
48
48
Changes to be committed:
@@ -79,7 +79,8 @@ Changes not staged for commit:
79
79
80
80
[NOTE]
81
81
=====
82
- 虽然在调用时加上 `--hard` 选项**可以**令 `git reset` 成为一个危险的命令(译注:可能导致工作目录中所有当前进度丢失!),但本例中工作目录内的文件并不会被修改。不加选项地调用 `git reset` 并不危险——它只会修改暂存区域。
82
+ 虽然在调用时加上 `--hard` 选项**可以**令 `git reset` 成为一个危险的命令(译注:可能导致工作目录中所有当前进度丢失!),但本例中工作目录内的文件并不会被修改。
83
+ 不加选项地调用 `git reset` 并不危险 — 它只会修改暂存区域。
83
84
=====
84
85
85
86
到目前为止这个神奇的调用就是你需要对 `git reset` 命令了解的全部。我们将会在 <<_git_reset>> 中了解 `reset` 的更多细节以及如何掌握它做一些真正有趣的事。
@@ -119,7 +120,8 @@ Changes to be committed:
119
120
120
121
[IMPORTANT]
121
122
=====
122
- 你需要知道 `git checkout -- [file]` 是一个危险的命令,这很重要。你对那个文件做的任何修改都会消失 - 你只是拷贝了另一个文件来覆盖它。
123
+ 你需要知道 `git checkout -- [file]` 是一个危险的命令,这很重要。
124
+ 你对那个文件做的任何修改都会消失 - 你只是拷贝了另一个文件来覆盖它。
123
125
除非你确实清楚不想要那个文件了,否则不要使用这个命令。
124
126
=====
125
127
You can’t perform that action at this time.
0 commit comments