Skip to content

Commit 3d98b71

Browse files
committed
differences for PR #194
1 parent d452bc9 commit 3d98b71

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

02-getting-started.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Vi and Vim are popular editors for users of the BASH shell. If you will be using
9595
::::::::::::::::::::::::::::::::::::::::::::::::::
9696

9797
Any text editor can be made default by adding the correct file path and command line options (see [GitHub help](https://help.github.com/articles/associating-text-editors-with-git/)).
98-
However, the simplest `core.editor` value is `"nano -w"` on Mac, Windows, and Linux.
98+
However, the simplest `core.editor` value is `"nano -w"` on Mac, Windows, and Linux, which will run the Nano text editor directly in your shell.
9999

100100
For example:
101101

@@ -242,9 +242,17 @@ Changes to be committed:
242242
If we are using colourised output, we will see that the filename has changed colour (from red to green). Git also tells us that there
243243
is a new file to be committed but, before we do that, let's add some text to the file.
244244

245-
We will open the file `index.md` with any text editor we have at hand (e.g. Notepad on Windows or TextEdit on Mac OSX) and enter `# Hello, world!`. The
246-
hash character is one way of writing a header with Markdown. Now, let's save the file within the text editor and check if Git
247-
has spotted the changes.
245+
We will open the file `index.md` with a text editor. If you set Nano as your `core.editor` value, this would be a good time to try it out:
246+
247+
```bash
248+
nano -w index.md
249+
```
250+
251+
If you don't want to try Nano, use whatever text editor you feel comfortable with (e.g. Notepad on Windows or TextEdit on macOS) to open the file.
252+
253+
When you have the file open, enter `# Hello, world!`. The hash character is one way of writing a header with Markdown. Then save the file and close the text editor.
254+
255+
Now, let's check if Git has spotted the changes:
248256

249257
```bash
250258
$ git status
@@ -289,11 +297,11 @@ $ git commit -m 'Add index.md'
289297
create mode 100644 index.md
290298
```
291299

292-
We can see that one file has changed and that we made one insertion, which was a line with the text '#Hello, world!'.
300+
We can see that one file has changed and that we made one insertion, which was a line with the text '# Hello, world!'.
293301
We can
294302
also see the commit message 'Add index.md', which we added by using the `-m` flag after `git commit`.
295303
The commit message is used to record a short, descriptive, and specific summary of what we did to help us remember later on without having to look at the actual changes.
296-
If we just run `git commit` without the `-m` option, Git will launch nano (or whatever other editor we configured as `core.editor`)
304+
If we just run `git commit` without the `-m` option, Git will launch Nano (or whatever other editor we configured as `core.editor`)
297305
so that we can write a longer message.
298306

299307
Having made a commit, we now have a permanent record of what was changed,

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"contribute.md" "6f688a330994cf2ec8aab8076927dc05" "site/built/contribute.md" "2023-04-21"
66
"index.md" "773cf78e1289f5ca1461848f3c59dfdb" "site/built/index.md" "2023-04-21"
77
"episodes/01-what-is-git.md" "445007d28cfc4ea532840d493b6d10e6" "site/built/01-what-is-git.md" "2024-07-03"
8-
"episodes/02-getting-started.md" "0a089568a57c4e9464a7a0efe7dfa6e5" "site/built/02-getting-started.md" "2025-09-03"
8+
"episodes/02-getting-started.md" "a0ee8918df8709348a617264a7e20136" "site/built/02-getting-started.md" "2025-11-27"
99
"episodes/03-sharing.md" "2ebf04d7dbd6bb52bcd799fb62860d17" "site/built/03-sharing.md" "2025-08-14"
1010
"episodes/04-review.md" "97347d9170f42978d0b7a9bbb73dedf9" "site/built/04-review.md" "2025-11-18"
1111
"episodes/05-github-pages.md" "7b26b8aa935f1003f54a819fe7d29e0d" "site/built/05-github-pages.md" "2025-09-03"

0 commit comments

Comments
 (0)