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/08-customizing-git/sections/config.asc
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
=== Git Configuration
3
3
4
4
(((git commands, config)))
5
-
As you briefly saw in <<_getting_started>>, you can specify Git configuration settings with the `git config` command.
5
+
As you read briefly in <<_getting_started>>, you can specify Git configuration settings with the `git config` command.
6
6
One of the first things you did was set up your name and email address:
7
7
8
8
[source,console]
@@ -35,7 +35,7 @@ It's generally easier to run the `git config` command, though.
35
35
==== Basic Client Configuration
36
36
37
37
The configuration options recognized by Git fall into two categories: client-side and server-side.
38
-
The majority of the options are client-side – configuring your personal working preferences.
38
+
The majority of the options are client-side -- configuring your personal working preferences.
39
39
Many, _many_ configuration options are supported, but a large fraction of them are useful only in certain edge cases; we'll cover just the most common and useful options here.
40
40
If you want to see a list of all the options your version of Git recognizes, you can run
41
41
@@ -70,7 +70,7 @@ For instance, consider a template file at `~/.gitmessage.txt` that looks like th
70
70
71
71
[source,text]
72
72
----
73
-
Subject line (try to keep under 60 characters)
73
+
Subject line (try to keep under 50 characters)
74
74
75
75
Multi-line description of commit,
76
76
feel free to be detailed.
@@ -393,7 +393,7 @@ This is a subtle but incredibly annoying fact of cross-platform work; many edito
393
393
394
394
Git can handle this by auto-converting CRLF line endings into LF when you add a file to the index, and vice versa when it checks out code onto your filesystem.
395
395
You can turn on this functionality with the `core.autocrlf` setting.
396
-
If you're on a Windows machine, set it to `true` – this converts LF endings into CRLF when you check out code:
396
+
If you're on a Windows machine, set it to `true` -- this converts LF endings into CRLF when you check out code:
Git comes preset to detect and fix some whitespace issues.
423
-
It can look for six primary whitespace issues – three are enabled by default and can be turned off, and three are disabled by default but can be activated.
423
+
It can look for six primary whitespace issues -- three are enabled by default and can be turned off, and three are disabled by default but can be activated.
424
424
425
425
The three that are turned on by default are `blank-at-eol`, which looks for spaces at the end of a line; `blank-at-eof`, which notices blank lines at the end of a file; and `space-before-tab`, which looks for spaces before tabs at the beginning of a line.
426
426
@@ -505,6 +505,6 @@ To avoid this, set `receive.denyDeletes` to true:
505
505
$ git config --system receive.denyDeletes true
506
506
----
507
507
508
-
This denies any deletion of branches or tags – no user can do it.
508
+
This denies any deletion of branches or tags -- no user can do it.
509
509
To remove remote branches, you must remove the ref files from the server manually.
510
510
There are also more interesting ways to do this on a per-user basis via ACLs, as you'll learn in <<_an_example_git_enforced_policy>>.
0 commit comments