Skip to content

Commit be4296c

Browse files
authored
Merge pull request #1300 from max123kl/patch-1
Line 229 formatting error by * (asterisk) fixed
2 parents 14ab61c + aca2c92 commit be4296c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/02-git-basics/sections/recording-changes.asc

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The rules for the patterns you can put in the `.gitignore` file are as follows:
226226
* You can negate a pattern by starting it with an exclamation point (`!`).
227227

228228
Glob patterns are like simplified regular expressions that shells use.
229-
An asterisk (`*`) matches zero or more characters; `[abc]` matches any character inside the brackets (in this case a, b, or c); a question mark (`?`) matches a single character; and brackets enclosing characters separated by a hyphen (`[0-9]`) matches any character between them (in this case 0 through 9).
229+
An asterisk (`\*`) matches zero or more characters; `[abc]` matches any character inside the brackets (in this case a, b, or c); a question mark (`?`) matches a single character; and brackets enclosing characters separated by a hyphen (`[0-9]`) matches any character between them (in this case 0 through 9).
230230
You can also use two asterisks to match nested directories; `a/**/z` would match `a/z`, `a/b/z`, `a/b/c/z`, and so on.
231231

232232
Here is another example `.gitignore` file:

0 commit comments

Comments
 (0)