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/01-introduction/sections/basics.asc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,10 @@ The mechanism that Git uses for this checksumming is called a SHA-1 hash.(((SHA-
56
56
This is a 40-character string composed of hexadecimal characters (0–9 and a–f) and calculated based on the contents of a file or directory structure in Git.
57
57
A SHA-1 hash looks something like this:
58
58
59
-
24b9da6552252987aa493b52f8696cd6d3b00373
59
+
[source]
60
+
----
61
+
24b9da6552252987aa493b52f8696cd6d3b00373
62
+
----
60
63
61
64
You will see these hash values all over the place in Git because it uses them so much.
62
65
In fact, Git stores everything in its database not by file name but by the hash value of its contents.
Again, you need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system.
31
34
If you want to override this with a different name or e-mail address for specific projects, you can run the command without the `--global` option when you're in that project.
@@ -38,7 +41,10 @@ Now that your identity is set up, you can configure the default text editor that
38
41
If not configured, Git uses your system's default editor, which is generally Vim.
39
42
If you want to use a different text editor, such as Emacs, you can do the following:
40
43
41
-
$ git config --global core.editor emacs
44
+
[source,console]
45
+
----
46
+
$ git config --global core.editor emacs
47
+
----
42
48
43
49
[NOTE]
44
50
====
@@ -49,19 +55,25 @@ Vim and Emacs are popular text editors often used by developers on Unix based sy
49
55
50
56
If you want to check your settings, you can use the `git config --list` command to list all the settings Git can find at that point:
0 commit comments