Skip to content

Commit ecf144b

Browse files
authored
NOTE style changed and its content rephrased
NOTE heading style changed and its content rephrased
1 parent c12d93d commit ecf144b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,12 @@ $ git cat-file -p master^{tree}
139139
The `master^{tree}` syntax specifies the tree object that is pointed to by the last commit on your `master` branch.
140140
Notice that the `lib` subdirectory isn't a blob but a pointer to another tree:
141141

142-
**NOTE**: while using `master^{tree}` syntax if you have error try the following
143-
144-
* On Windows, in PowerShell and cmd.exe, ^ is used for escaping. There, you can alternatively write git `cat-file -p master^^{tree}`
145-
* In zsh `^` is a globbing character so use them with quotes `git cat-file -p "master^{tree}"`
146-
* In bash the command works without quotes
142+
[NOTE]
143+
====
144+
* Depending on what shell you use, you may encounter errors when using the `master^{tree}` syntax
145+
* 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}`
146+
* 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}"`
147+
====
147148

148149
[source,console]
149150
----

0 commit comments

Comments
 (0)