Skip to content

Commit 4add380

Browse files
committed
Merge branch 'master' into update-gitlab-section
2 parents d4c73a2 + e5c2b75 commit 4add380

File tree

9 files changed

+15
-20
lines changed

9 files changed

+15
-20
lines changed

A-git-in-other-environments.asc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ include::book/A-git-in-other-environments/sections/visualstudio.asc[]
1313

1414
include::book/A-git-in-other-environments/sections/visualstudiocode.asc[]
1515

16-
include::book/A-git-in-other-environments/sections/eclipse.asc[]
17-
1816
include::book/A-git-in-other-environments/sections/jetbrainsides.asc[]
1917

2018
include::book/A-git-in-other-environments/sections/sublimetext.asc[]

book/01-introduction/sections/what-is-git.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[[_what_is_git]]
12
=== What is Git?
23

34
So, what is Git in a nutshell?

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,16 +263,22 @@ If you want to view the versions of files a tag is pointing to, you can do a `gi
263263
[source,console]
264264
----
265265
$ git checkout v2.0.0
266-
Note: checking out 'v2.0.0'.
266+
Note: switching to 'v2.0.0'.
267267
268268
You are in 'detached HEAD' state. You can look around, make experimental
269269
changes and commit them, and you can discard any commits you make in this
270270
state without impacting any branches by performing another checkout.
271271
272272
If you want to create a new branch to retain commits you create, you may
273-
do so (now or later) by using -b with the checkout command again. Example:
273+
do so (now or later) by using -c with the switch command. Example:
274274
275-
git checkout -b <new-branch>
275+
git switch -c <new-branch-name>
276+
277+
Or undo this operation with:
278+
279+
git switch -
280+
281+
Turn off this advice by setting config variable advice.detachedHead to false
276282
277283
HEAD is now at 99ada87... Merge pull request #89 from schacon/appendix-final
278284

book/03-git-branching/sections/branch-management.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ But the remote still has a _master_ branch.
168168
Other collaborators will continue to use the _master_ branch as the base of their work, until you make some further changes.
169169

170170
Now you have a few more tasks in front of you to complete the transition:
171+
171172
* Any projects that depend on this one will need to update their code and/or configuration.
172173
* Update any test-runner configuration files.
173174
* Adjust build and release scripts.
174-
* Redirect settings on your repo host for things like thee repo's default branch, merge rules, and other things that match branch names.
175+
* Redirect settings on your repo host for things like the repo's default branch, merge rules, and other things that match branch names.
175176
* Update references to the old branch in documentation.
176177
* Close or merge any pull requests that target the old branch.
177178

book/03-git-branching/sections/nutshell.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
To really understand the way Git does branching, we need to take a step back and examine how Git stores its data.
55

6-
As you may remember from <<ch01-getting-started#ch01-getting-started>>, Git doesn't store data as a series of changesets or differences, but instead as a series of _snapshots_.
6+
As you may remember from <<ch01-getting-started#_what_is_git>>, Git doesn't store data as a series of changesets or differences, but instead as a series of _snapshots_.
77

88
When you make a commit, Git stores a commit object that contains a pointer to the snapshot of the content you staged.
99
This object also contains the author's name and email address, the message that you typed, and pointers to the commit or commits that directly came before this commit (its parent or parents): zero parents for the initial commit, one parent for a normal commit, and multiple parents for a commit that results from a merge of two or more branches.
1010

1111
To visualize this, let's assume that you have a directory containing three files, and you stage them all and commit.
12-
Staging the files computes a checksum for each one (the SHA-1 hash we mentioned in <<ch01-getting-started#ch01-getting-started>>), stores that version of the file in the Git repository (Git refers to them as _blobs_), and adds that checksum to the staging area:
12+
Staging the files computes a checksum for each one (the SHA-1 hash we mentioned in <<ch01-getting-started#_what_is_git>>), stores that version of the file in the Git repository (Git refers to them as _blobs_), and adds that checksum to the staging area:
1313

1414
[source,console]
1515
----

book/05-distributed-git/sections/contributing.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ Result: OK
787787

788788
[TIP]
789789
====
790-
For help on confuring your system and email, more tips and tricks, and a sandbox to send a trial patch via email, go to [git-send-email.io](https://git-send-email.io/).
790+
For help on configuring your system and email, more tips and tricks, and a sandbox to send a trial patch via email, go to [git-send-email.io](https://git-send-email.io/).
791791
====
792792

793793
==== Summary

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

Lines changed: 0 additions & 10 deletions
This file was deleted.

images/egit.png

-90.4 KB
Binary file not shown.

status.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"A-git-in-other-environments": {
108108
"1-git-other-environments.asc": 0,
109109
"sections/bash.asc": 0,
110-
"sections/eclipse.asc": 0,
111110
"sections/guis.asc": 0,
112111
"sections/powershell.asc": 0,
113112
"sections/visualstudio.asc": 0,

0 commit comments

Comments
 (0)