File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
book/10-git-internals/sections Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,15 @@ $ git cat-file -p 99f1a6d12cb4b6f19c8655fca46c3ecf317074e0
145
145
100644 blob 47c6340d6459e05787f644c2447d2595f5d3a54b simplegit.rb
146
146
----
147
147
148
+ [NOTE]
149
+ ====
150
+ Depending on what shell you use, you may encounter errors when using the `master^{tree}` syntax.
151
+
152
+ In PowerShell or CMD on Windows, the `^` character is used for escaping, so you have to double it to avoid this: `git cat-file -p mater^^{tree}`.
153
+
154
+ If you're using ZSH, the `^` character is used for globbing, so you have to enclose the whole expression in quotes: `git cat-file -p "master^{tree}"`
155
+ ====
156
+
148
157
Conceptually, the data that Git is storing looks something like this:
149
158
150
159
.Simple version of the Git data model.
You can’t perform that action at this time.
0 commit comments