Skip to content

Commit a660ce3

Browse files
committed
Make third note pretty-formated
1 parent a05b9fe commit a660ce3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Doing so launches your editor of choice.
423423

424424
[NOTE]
425425
====
426-
This is set by your shell's `EDITOR` environment variable -- usually vim or emacs, although you can configure it with whatever you want using the `git config --global core.editor` command as you saw in <<ch01-getting-started#ch01-getting-started>>).(((editor, changing default)))(((git commands, config)))
426+
This is set by your shell's `EDITOR` environment variable -- usually vim or emacs, although you can configure it with whatever you want using the `git config --global core.editor` command as you saw in <<ch01-getting-started#ch01-getting-started>>.(((editor, changing default)))(((git commands, config)))
427427
====
428428

429429
The editor displays the following text (this example is a Vim screen):
@@ -448,8 +448,13 @@ The editor displays the following text (this example is a Vim screen):
448448

449449
You can see that the default commit message contains the latest output of the `git status` command commented out and one empty line on top.
450450
You can remove these comments and type your commit message, or you can leave them there to help you remember what you're committing.
451-
(For an even more explicit reminder of what you've modified, you can pass the `-v` option to `git commit`.
452-
Doing so also puts the diff of your change in the editor so you can see exactly what changes you're committing.)
451+
452+
[NOTE]
453+
====
454+
For an even more explicit reminder of what you've modified, you can pass the `-v` option to `git commit`.
455+
Doing so also puts the diff of your change in the editor so you can see exactly what changes you're committing.
456+
====
457+
453458
When you exit the editor, Git creates your commit with that commit message (with the comments and diff stripped out).
454459

455460
Alternatively, you can type your commit message inline with the `commit` command by specifying it after a `-m` flag, like this:

0 commit comments

Comments
 (0)