Skip to content

Commit a700674

Browse files
Merge branch 'master' into patch-3
2 parents 5c2ee56 + 8148dc6 commit a700674

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

C-git-commands.asc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,21 @@ Accompanying the configuration instructions in <<ch01-getting-started#_editor>>,
5454
|BBEdit (Mac, with command line tools) |`git config --global core.editor "bbedit -w"`
5555
|Emacs |`git config --global core.editor emacs`
5656
|Gedit (Linux) |`git config --global core.editor "gedit --wait --new-window"`
57-
|Gvim (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Vim/vim72/gvim.exe' --nofork '%*'"` (Also see note below)
57+
|Gvim (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Vim\vim72\gvim.exe' --nofork '%*'"` (Also see note below)
5858
|Kate (Linux) |`git config --global core.editor "kate"`
5959
|nano |`git config --global core.editor "nano -w"`
6060
|Notepad (Windows 64-bit) |`git config core.editor notepad`
61-
|Notepad++ (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"` (Also see note below)
61+
|Notepad++ (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"` (Also see note below)
6262
|Scratch (Linux)|`git config --global core.editor "scratch-text-editor"`
6363
|Sublime Text (macOS) |`git config --global core.editor "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl --new-window --wait"`
64-
|Sublime Text (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Sublime Text 3/sublime_text.exe' -w"` (Also see note below)
64+
|Sublime Text (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Sublime Text 3\sublime_text.exe' -w"` (Also see note below)
6565
|TextEdit (macOS)|`git config --global --add core.editor "open -W -n"`
6666
|Textmate |`git config --global core.editor "mate -w"`
67-
|Textpad (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/TextPad 5/TextPad.exe' -m` (Also see note below)
67+
|Textpad (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\TextPad 5\TextPad.exe' -m` (Also see note below)
6868
|UltraEdit (Windows 64-bit) | `git config --global core.editor Uedit32`
6969
|Vim |`git config --global core.editor "vim"`
70-
|VS Code |`git config --global core.editor "code --wait"`
70+
|Visual Studio Code |`git config --global core.editor "code --wait"`
71+
|VSCodium (Free/Libre Open Source Software Binaries of VSCode) | `git config --global core.editor "codium --wait"`
7172
|WordPad |`git config --global core.editor '"C:\Program Files\Windows NT\Accessories\wordpad.exe"'"`
7273
|Xi | `git config --global core.editor "xi --wait"`
7374
|==============================

book/02-git-basics/sections/tagging.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ If you want to view the versions of files a tag is pointing to, you can do a `gi
261261

262262
[source,console]
263263
----
264-
$ git checkout 2.0.0
265-
Note: checking out '2.0.0'.
264+
$ git checkout v2.0.0
265+
Note: checking out 'v2.0.0'.
266266
267267
You are in 'detached HEAD' state. You can look around, make experimental
268268
changes and commit them, and you can discard any commits you make in this

book/07-git-tools/sections/submodules.asc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,11 @@ Submodule DbConnector c3f01dc..c87d55d:
373373
> better connection routine
374374
----
375375

376-
Git will by default try to update *all* of your submodules when you run `git submodule update --remote` so if you have a lot of them, you may want to pass the name of just the submodule you want to try to update.
376+
Git will by default try to update *all* of your submodules when you run `git submodule update --remote`.
377+
If you have a lot of them, you may want to pass the name of just the submodule you want to try to update.
377378

378379
===== Pulling Upstream Changes from the Project Remote
380+
379381
Let's now step into the shoes of your collaborator, who has their own local clone of the MainProject repository.
380382
Simply executing `git pull` to get your newly committed changes is not enough:
381383

@@ -966,7 +968,8 @@ nothing to commit, working tree clean
966968
----
967969

968970
Using the `--recurse-submodules` flag of `git checkout` can also be useful when you work on several branches in the superproject, each having your submodule pointing at different commits.
969-
Indeed, if you switch between branches that record the submodule at different commits, upon executing `git status` the submodule will appear as ``modified'', and indicate ``new commits''. That is because the submodule state is by default not carried over when switching branches.
971+
Indeed, if you switch between branches that record the submodule at different commits, upon executing `git status` the submodule will appear as ``modified'', and indicate ``new commits''.
972+
That is because the submodule state is by default not carried over when switching branches.
970973

971974
This can be really confusing, so it's a good idea to always `git checkout --recurse-submodules` when your project has submodules.
972975
(For older Git versions that do not have the `--recurse-submodules` flag, after the checkout you can use `git submodule update --init --recursive` to put the submodules in the right state.)

book/10-git-internals/sections/transfer-protocols.asc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,11 @@ $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'"
153153
The `git-receive-pack` command immediately responds with one line for each reference it currently has – in this case, just the `master` branch and its SHA-1.
154154
The first line also has a list of the server's capabilities (here, `report-status`, `delete-refs`, and some others, including the client identifier).
155155

156-
Each line starts with a 4-character hex value specifying how long the rest of the line is.
157-
Your first line starts with 00a5, which is hexadecimal for 165, meaning that 165 bytes remain on that line.
158-
The next line is 0000, meaning the server is done with its references listing.
156+
The data is transmitted in chunks.
157+
Each chunk starts with a 4-character hex value specifying how long the chunk is (including the 4 bytes of the length itself).
158+
Chunks usually contain a single line of data and a trailing linefeed.
159+
Your first chunk starts with 00a5, which is hexadecimal for 165, meaning the chunk is 165 bytes long.
160+
The next chunk is 0000, meaning the server is done with its references listing.
159161

160162
Now that it knows the server's state, your `send-pack` process determines what commits it has that the server doesn't.
161163
For each reference that this push will update, the `send-pack` process tells the `receive-pack` process that information.
@@ -209,6 +211,8 @@ The client then makes another request, this time a `POST`, with the data that `s
209211
The `POST` request includes the `send-pack` output and the packfile as its payload.
210212
The server then indicates success or failure with its HTTP response.
211213

214+
Keep in mind the HTTP protocol may further wrap this data inside a chunked transfer encoding.
215+
212216
===== Downloading Data
213217

214218
(((git commands, fetch-pack)))(((git commands, upload-pack)))

book/A-git-in-other-environments/sections/visualstudiocode.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The main features are:
1515
** Push/pull/sync with a remote branch.
1616
** Resolve merge conflicts.
1717
** View diffs.
18-
* With a extension, you can also handle GitHub Pull Requests:
18+
* With an extension, you can also handle GitHub Pull Requests:
1919
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github[]
2020
2121
The official documentation can be found here: https://code.visualstudio.com/Docs/editor/versioncontrol[]

images/areas.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)