Skip to content

Commit de14991

Browse files
committed
Fix console blocks in config.asc
1 parent 2a8a44b commit de14991

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

book/08-customizing-git/sections/config.asc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Now, no matter what is set as your default shell editor, Git will fire up Emacs
6666
If you set this to the path of a file on your system, Git will use that file as the default message when you commit.
6767
For instance, suppose you create a template file at `~/.gitmessage.txt` that looks like this:
6868

69-
[source]
69+
[source,text]
7070
----
7171
subject line
7272
@@ -85,7 +85,7 @@ $ git commit
8585

8686
Then, your editor will open to something like this for your placeholder commit message when you commit:
8787

88-
[source]
88+
[source,text]
8989
----
9090
subject line
9191
@@ -150,7 +150,7 @@ If your preferred editor is Emacs or Vim, you know about files that end with a `
150150
This setting lets you write a kind of global `.gitignore` file.
151151
If you create a `~/.gitignore_global` file with these contents:
152152

153-
[source]
153+
[source,ini]
154154
----
155155
*~
156156
.DS_Store
@@ -221,7 +221,10 @@ Each of these can be set to `true`, `false`, or `always`:
221221
In addition, each of these has subsettings you can use to set specific colors for parts of the output, if you want to override each color.
222222
For example, to set the meta information in your diff output to blue foreground, black background, and bold text, you can run
223223

224-
$ git config --global color.diff.meta "blue black bold"
224+
[source,console]
225+
----
226+
$ git config --global color.diff.meta "blue black bold"
227+
----
225228

226229
You can set the color to any of the following values: `normal`, `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, or `white`.
227230
If you want an attribute like bold in the previous example, you can choose from `bold`, `dim`, `ul` (underline), `blink`, and `reverse` (swap foreground and background).

0 commit comments

Comments
 (0)