You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/recording-changes.asc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ The rules for the patterns you can put in the `.gitignore` file are as follows:
217
217
* You can negate a pattern by starting it with an exclamation point (`!`).
218
218
219
219
Glob patterns are like simplified regular expressions that shells use.
220
-
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).
220
+
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).
221
221
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.
222
222
223
223
Here is another example .gitignore file:
@@ -354,7 +354,7 @@ index 643e24f..87f08c8 100644
354
354
+# test line
355
355
----
356
356
357
-
and `git diff --cached` to see what you've staged so far (--staged and --cached are synonyms):
357
+
and `git diff --cached` to see what you've staged so far (`--staged` and `--cached` are synonyms):
358
358
359
359
[source,console]
360
360
----
@@ -425,7 +425,7 @@ You can remove these comments and type your commit message, or you can leave the
425
425
Doing so also puts the diff of your change in the editor so you can see exactly what changes you're committing.)
426
426
When you exit the editor, Git creates your commit with that commit message (with the comments and diff stripped out).
427
427
428
-
Alternatively, you can type your commit message inline with the `commit` command by specifying it after a -m flag, like this:
428
+
Alternatively, you can type your commit message inline with the `commit` command by specifying it after a `-m` flag, like this:
429
429
430
430
[source,console]
431
431
----
@@ -580,4 +580,4 @@ $ git add README
580
580
581
581
Git figures out that it's a rename implicitly, so it doesn't matter if you rename a file that way or with the `mv` command.
582
582
The only real difference is that `mv` is one command instead of three – it's a convenience function.
583
-
More important, you can use any tool you like to rename a file, and address the add/rm later, before you commit.
583
+
More importantly, you can use any tool you like to rename a file, and address the add/rm later, before you commit.
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/viewing-history.asc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ The author is the person who originally wrote the work, whereas the committer is
185
185
So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit – you as the author, and the core member as the committer.
186
186
We'll cover this distinction a bit more in <<_distributed_git>>.
187
187
188
-
The oneline and format options are particularly useful with another `log` option called `--graph`.
188
+
The `oneline` and `format` options are particularly useful with another `log` option called `--graph`.
189
189
This option adds a nice little ASCII graph showing your branch and merge history:
0 commit comments