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/04-git-server/sections/generating-ssh-key.asc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ config id_dsa.pub
19
19
20
20
You're looking for a pair of files named something like `id_dsa` or `id_rsa` and a matching file with a `.pub` extension.
21
21
The `.pub` file is your public key, and the other file is the corresponding private key.
22
-
If you don't have these files (or you don't even have a `.ssh` directory), you can create them by running a program called `ssh-keygen`, which is provided with the SSH package on Linux/Mac systems and comes with Git for Windows:
22
+
If you don't have these files (or you don't even have a `.ssh` directory), you can create them by running a program called `ssh-keygen`, which is provided with the SSH package on Linux/macOS systems and comes with Git for Windows:
Copy file name to clipboardExpand all lines: book/04-git-server/sections/git-on-a-server.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
@@ -5,7 +5,7 @@ Now we'll cover setting up a Git service running these protocols on your own ser
5
5
6
6
[NOTE]
7
7
====
8
-
Here we'll be demonstrating the commands and steps needed to do basic, simplified installations on a Linux-based server, though it's also possible to run these services on Mac or Windows servers.
8
+
Here we'll be demonstrating the commands and steps needed to do basic, simplified installations on a Linux-based server, though it's also possible to run these services on macOS or Windows servers.
9
9
Actually setting up a production server within your infrastructure will certainly entail differences in security measures or operating system tools, but hopefully this will give you the general idea of what's involved.
Copy file name to clipboardExpand all lines: book/08-customizing-git/sections/attributes.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
@@ -17,7 +17,7 @@ You'll see how to tell Git which is which.
17
17
===== Identifying Binary Files
18
18
19
19
Some files look like text files but for all intents and purposes are to be treated as binary data.
20
-
For instance, Xcode projects on the Mac contain a file that ends in `.pbxproj`, which is basically a JSON (plain-text JavaScript data format) dataset written out to disk by the IDE, which records your build settings and so on.
20
+
For instance, Xcode projects on macOS contain a file that ends in `.pbxproj`, which is basically a JSON (plain-text JavaScript data format) dataset written out to disk by the IDE, which records your build settings and so on.
21
21
Although it's technically a text file (because it's all UTF-8), you don't want to treat it as such because it's really a lightweight database – you can't merge the contents if two people change it, and diffs generally aren't helpful.
22
22
The file is meant to be consumed by a machine.
23
23
In essence, you want to treat it like a binary file.
Copy file name to clipboardExpand all lines: book/08-customizing-git/sections/config.asc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,11 +245,11 @@ You can also set up a graphical merge-conflict-resolution tool instead of having
245
245
We'll demonstrate setting up the Perforce Visual Merge Tool (P4Merge) to do your diffs and merge resolutions, because it's a nice graphical tool and it's free.
246
246
247
247
If you want to try this out, P4Merge works on all major platforms, so you should be able to do so.
248
-
We'll use path names in the examples that work on Mac and Linux systems; for Windows, you'll have to change `/usr/local/bin` to an executable path in your environment.
248
+
We'll use path names in the examples that work on macOS and Linux systems; for Windows, you'll have to change `/usr/local/bin` to an executable path in your environment.
249
249
250
250
To begin, https://www.perforce.com/product/components/perforce-visual-merge-and-diff-tools[download P4Merge from Perforce].
251
251
Next, you'll set up external wrapper scripts to run your commands.
252
-
We'll use the Mac path for the executable; in other systems, it will be where your `p4merge` binary is installed.
252
+
We'll use the macOS path for the executable; in other systems, it will be where your `p4merge` binary is installed.
253
253
Set up a merge wrapper script named `extMerge` that calls your binary with all the arguments provided:
254
254
255
255
[source,console]
@@ -388,7 +388,7 @@ Git has a few configuration options to help with these issues.
388
388
389
389
(((crlf)))(((line endings)))
390
390
If you're programming on Windows and working with people who are not (or vice-versa), you'll probably run into line-ending issues at some point.
391
-
This is because Windows uses both a carriage-return character and a linefeed character for newlines in its files, whereas Mac and Linux systems use only the linefeed character.
391
+
This is because Windows uses both a carriage-return character and a linefeed character for newlines in its files, whereas macOS and Linux systems use only the linefeed character.
392
392
This is a subtle but incredibly annoying fact of cross-platform work; many editors on Windows silently replace existing LF-style line endings with CRLF, or insert both line-ending characters when the user hits the enter key.
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.
@@ -400,15 +400,15 @@ If you're on a Windows machine, set it to `true` -- this converts LF endings int
400
400
$ git config --global core.autocrlf true
401
401
----
402
402
403
-
If you're on a Linux or Mac system that uses LF line endings, then you don't want Git to automatically convert them when you check out files; however, if a file with CRLF endings accidentally gets introduced, then you may want Git to fix it.
403
+
If you're on a Linux or macOS system that uses LF line endings, then you don't want Git to automatically convert them when you check out files; however, if a file with CRLF endings accidentally gets introduced, then you may want Git to fix it.
404
404
You can tell Git to convert CRLF to LF on commit but not the other way around by setting `core.autocrlf` to input:
405
405
406
406
[source,console]
407
407
----
408
408
$ git config --global core.autocrlf input
409
409
----
410
410
411
-
This setup should leave you with CRLF endings in Windows checkouts, but LF endings on Mac and Linux systems and in the repository.
411
+
This setup should leave you with CRLF endings in Windows checkouts, but LF endings on macOS and Linux systems and in the repository.
412
412
413
413
If you're a Windows programmer doing a Windows-only project, then you can turn off this functionality, recording the carriage returns in the repository by setting the config value to `false`:
Copy file name to clipboardExpand all lines: book/A-git-in-other-environments/sections/guis.asc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,15 +66,15 @@ Then you can simply stage or unstage some changes, alter the commit message, and
66
66
`gitk` and `git-gui` are examples of task-oriented tools.
67
67
Each of them is tailored for a specific purpose (viewing history and creating commits, respectively), and omit the features not necessary for that task.
68
68
69
-
==== GitHub for Mac and Windows
69
+
==== GitHub for macOS and Windows
70
70
71
-
(((GitHub for Mac)))(((GitHub for Windows)))
71
+
(((GitHub for macOS)))(((GitHub for Windows)))
72
72
GitHub has created two workflow-oriented Git clients: one for Windows, and one for macOS.
73
73
These clients are a good example of workflow-oriented tools – rather than expose _all_ of Git's functionality, they instead focus on a curated set of commonly-used features that work well together.
74
74
They look like this:
75
75
76
-
.GitHub for Mac.
77
-
image::images/github_mac.png[GitHub for Mac.]
76
+
.GitHub for macOS.
77
+
image::images/github_mac.png[GitHub for macOS.]
78
78
79
79
.GitHub for Windows.
80
80
image::images/github_win.png[GitHub for Windows.]
@@ -96,7 +96,7 @@ While they're designed to highlight GitHub's service and recommended workflow, t
96
96
97
97
===== Installation
98
98
99
-
GitHub for Windows can be downloaded from https://windows.github.com[], and GitHub for Mac from https://mac.github.com[].
99
+
GitHub for Windows can be downloaded from https://windows.github.com[], and GitHub for macOS from https://mac.github.com[].
100
100
When the applications are first run, they walk you through all the first-time Git setup, such as configuring your name and email address, and both set up sane defaults for many common configuration options, such as credential caches and CRLF behavior.
101
101
102
102
Both are ``evergreen'' – updates are downloaded and installed in the background while the applications are open.
0 commit comments