Skip to content

Commit 6d90fc5

Browse files
committed
Minor cleanup in 10.2 regarding new tree creation
1 parent 1f0cf3f commit 6d90fc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

book/10-git-internals/sections/objects.asc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@ You'll now create a new tree with the second version of `test.txt` and a new fil
188188
[source,console]
189189
----
190190
$ echo 'new file' > new.txt
191-
$ git update-index --cacheinfo 100644 \
191+
$ git update-index --add --cacheinfo 100644 \
192192
1f7a7a472abf3dd9643fd615f6da379c4acb3e3a test.txt
193-
$ git update-index test.txt
194193
$ git update-index --add new.txt
195194
----
196195

0 commit comments

Comments
 (0)