Skip to content

Commit 8176545

Browse files
authored
Merge pull request #1444 from finn0/master
Remove punctuation mark from the figure captions
2 parents 86e83f8 + e98c651 commit 8176545

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+293
-293
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ assignees: ''
1212
<!-- * This bug report is about a single actionable bug. -->
1313
<!-- * This bug is about the Pro Git book, version 2, English language. -->
1414
<!-- * This bug is about the book as found on the [website](https://www.git-scm.com/book/en/v2) or the pdf. -->
15-
<!-- * If you found a issue in the pdf/epub/mobi files, you've checked if the problem is also present in the Pro Git book on the [website](https://www.git-scm.com/book/en/v2). -->
15+
<!-- * If you found an issue in the pdf/epub/mobi files, you've checked if the problem is also present in the Pro Git book on the [website](https://www.git-scm.com/book/en/v2). -->
1616
<!-- * This bug is **not** about a translation, if so please file a bug with the translation project. You can find a table of translation projects here: [progit2/TRANSLATING.md](https://github.com/progit/progit2/blob/master/TRANSLATING.md) -->
1717
<!-- * This bug is **not** about the git-scm.com site, if so please file a bug here: [git-scm.com/issues/new](https://github.com/git/git-scm.com/issues/new) -->
1818
<!-- * This bug is **not** about git the program itself, if so please file a bug here: [git-scm.com/community](https://git-scm.com/community) -->
@@ -58,7 +58,7 @@ assignees: ''
5858
- Browser/application version:
5959

6060
**E-book reader:**
61-
<!-- If you've used a e-book reader to access the content, please fill in this form. -->
61+
<!-- If you've used an e-book reader to access the content, please fill in this form. -->
6262
<!-- Example: Amazon Kindle Paperwhite 10th generation, software update 5.11.1 -->
6363
- Device:
6464
- Software Update:

book/01-introduction/sections/about-version-control.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It is easy to forget which directory you're in and accidentally write to the wro
1919

2020
To deal with this issue, programmers long ago developed local VCSs that had a simple database that kept all the changes to files under revision control.
2121

22-
.Local version control.
22+
.Local version control
2323
image::images/local.png[Local version control diagram]
2424

2525
One of the most popular VCS tools was a system called RCS, which is still distributed with many computers today.
@@ -33,7 +33,7 @@ To deal with this problem, Centralized Version Control Systems (CVCSs) were deve
3333
These systems (such as CVS, Subversion, and Perforce) have a single server that contains all the versioned files, and a number of clients that check out files from that central place. (((CVS)))(((Subversion)))(((Perforce)))
3434
For many years, this has been the standard for version control.
3535

36-
.Centralized version control.
36+
.Centralized version control
3737
image::images/centralized.png[Centralized version control diagram]
3838

3939
This setup offers many advantages, especially over local VCSs.
@@ -54,7 +54,7 @@ In a DVCS (such as Git, Mercurial, Bazaar or Darcs), clients don't just check ou
5454
Thus, if any server dies, and these systems were collaborating via that server, any of the client repositories can be copied back up to the server to restore it.
5555
Every clone is really a full backup of all the data.
5656

57-
.Distributed version control.
57+
.Distributed version control
5858
image::images/distributed.png[Distributed version control diagram]
5959

6060
Furthermore, many of these systems deal pretty well with having several remote repositories they can work with, so you can collaborate with different groups of people in different ways simultaneously within the same project.

book/01-introduction/sections/help.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $ git <verb> --help
1010
$ man git-<verb>
1111
----
1212

13-
For example, you can get the manpage help for the `git config` command by running(((git commands, help)))
13+
For example, you can get the manpage help for the `git config` command by running this:(((git commands, help)))
1414

1515
[source,console]
1616
----

book/01-introduction/sections/installing.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ If you don't have it installed already, it will prompt you to install it.
4848
If you want a more up to date version, you can also install it via a binary installer.
4949
A macOS Git installer is maintained and available for download at the Git website, at https://git-scm.com/download/mac[].
5050

51-
.Git macOS Installer.
52-
image::images/git-osx-installer.png[Git macOS installer.]
51+
.Git macOS Installer
52+
image::images/git-osx-installer.png[Git macOS installer]
5353

5454
You can also install it as part of the GitHub for macOS install.
5555
Their GUI Git tool has an option to install command line tools as well.
@@ -114,7 +114,7 @@ If you're using a RPM-based distribution (Fedora/RHEL/RHEL-derivatives), you als
114114
$ sudo dnf install getopt
115115
----
116116

117-
Additionally, if you're using Fedora/RHEL/RHEL-derivatives, you need to do this
117+
Additionally, if you're using Fedora/RHEL/RHEL-derivatives, you need to do this:
118118

119119
[source,console]
120120
----

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ The major difference between Git and any other VCS (Subversion and friends inclu
1111
Conceptually, most other systems store information as a list of file-based changes.
1212
These other systems (CVS, Subversion, Perforce, Bazaar, and so on) think of the information they store as a set of files and the changes made to each file over time (this is commonly described as _delta-based_ version control).
1313

14-
.Storing data as changes to a base version of each file.
15-
image::images/deltas.png[Storing data as changes to a base version of each file.]
14+
.Storing data as changes to a base version of each file
15+
image::images/deltas.png[Storing data as changes to a base version of each file]
1616

1717
Git doesn't think of or store its data this way.
1818
Instead, Git thinks of its data more like a series of snapshots of a miniature filesystem.
1919
With Git, every time you commit, or save the state of your project, Git basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot.
2020
To be efficient, if files have not changed, Git doesn't store the file again, just a link to the previous identical file it has already stored.
2121
Git thinks about its data more like a *stream of snapshots*.
2222

23-
.Storing data as snapshots of the project over time.
24-
image::images/snapshots.png[Git stores data as snapshots of the project over time.]
23+
.Storing data as snapshots of the project over time
24+
image::images/snapshots.png[Git stores data as snapshots of the project over time]
2525

2626
This is an important distinction between Git and nearly all other VCSs.
2727
It makes Git reconsider almost every aspect of version control that most other systems copied from the previous generation.
@@ -84,7 +84,7 @@ Git has three main states that your files can reside in: _modified_, _staged_, a
8484

8585
This leads us to the three main sections of a Git project: the working tree, the staging area, and the Git directory.
8686

87-
.Working tree, staging area, and Git directory.
87+
.Working tree, staging area, and Git directory
8888
image::images/areas.png["Working tree, staging area, and Git directory."]
8989

9090
The working tree is a single checkout of one version of the project.

book/02-git-basics/sections/recording-changes.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When you first clone a repository, all of your files will be tracked and unmodif
1313
As you edit files, Git sees them as modified, because you've changed them since your last commit.
1414
As you work, you selectively stage these modified files and then commit all those staged changes, and the cycle repeats.
1515

16-
.The lifecycle of the status of your files.
17-
image::images/lifecycle.png[The lifecycle of the status of your files.]
16+
.The lifecycle of the status of your files
17+
image::images/lifecycle.png[The lifecycle of the status of your files]
1818

1919
[[_checking_status]]
2020
==== Checking the Status of Your Files

book/02-git-basics/sections/viewing-history.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After you have created several commits, or if you have cloned a repository with
55
The most basic and powerful tool to do this is the `git log` command.
66

77
These examples use a very simple project called ``simplegit''.
8-
To get the project, run
8+
To get the project, run:
99

1010
[source,console]
1111
----

book/03-git-branching/sections/basic-branching-and-merging.asc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You'll do the following:
2222
First, let's say you're working on your project and have a couple of commits already on the `master` branch.
2323

2424
.A simple commit history
25-
image::images/basic-branching-1.png[A simple commit history.]
25+
image::images/basic-branching-1.png[A simple commit history]
2626

2727
You've decided that you're going to work on issue #53 in whatever issue-tracking system your company uses.
2828
To create a new branch and switch to it at the same time, you can run the `git checkout` command with the `-b` switch:
@@ -42,7 +42,7 @@ $ git checkout iss53
4242
----
4343

4444
.Creating a new branch pointer
45-
image::images/basic-branching-2.png[Creating a new branch pointer.]
45+
image::images/basic-branching-2.png[Creating a new branch pointer]
4646

4747
You work on your website and do some commits.
4848
Doing so moves the `iss53` branch forward, because you have it checked out (that is, your `HEAD` is pointing to it):
@@ -54,7 +54,7 @@ $ git commit -a -m 'Create new footer [issue 53]'
5454
----
5555

5656
.The `iss53` branch has moved forward with your work
57-
image::images/basic-branching-3.png[The `iss53` branch has moved forward with your work.]
57+
image::images/basic-branching-3.png[The `iss53` branch has moved forward with your work]
5858

5959
Now you get the call that there is an issue with the website, and you need to fix it immediately.
6060
With Git, you don't have to deploy your fix along with the `iss53` changes you've made, and you don't have to put a lot of effort into reverting those changes before you can work on applying your fix to what is in production.
@@ -89,7 +89,7 @@ $ git commit -a -m 'Fix broken email address'
8989
----
9090

9191
.Hotfix branch based on `master`
92-
image::images/basic-branching-4.png[Hotfix branch based on `master`.]
92+
image::images/basic-branching-4.png[Hotfix branch based on `master`]
9393

9494
You can run your tests, make sure the hotfix is what you want, and finally merge the `hotfix` branch back into your `master` branch to deploy to production.
9595
You do this with the `git merge` command:(((git commands, merge)))
@@ -111,7 +111,7 @@ To phrase that another way, when you try to merge one commit with a commit that
111111
Your change is now in the snapshot of the commit pointed to by the `master` branch, and you can deploy the fix.
112112

113113
.`master` is fast-forwarded to `hotfix`
114-
image::images/basic-branching-5.png[`master` is fast-forwarded to `hotfix`.]
114+
image::images/basic-branching-5.png[`master` is fast-forwarded to `hotfix`]
115115

116116
After your super-important fix is deployed, you're ready to switch back to the work you were doing before you were interrupted.
117117
However, first you'll delete the `hotfix` branch, because you no longer need it -- the `master` branch points at the same place.
@@ -136,7 +136,7 @@ $ git commit -a -m 'Finish the new footer [issue 53]'
136136
----
137137

138138
.Work continues on `iss53`
139-
image::images/basic-branching-6.png[Work continues on `iss53`.]
139+
image::images/basic-branching-6.png[Work continues on `iss53`]
140140

141141
It's worth noting here that the work you did in your `hotfix` branch is not contained in the files in your `iss53` branch.
142142
If you need to pull it in, you can merge your `master` branch into your `iss53` branch by running `git merge master`, or you can wait to integrate those changes until you decide to pull the `iss53` branch back into `master` later.
@@ -165,13 +165,13 @@ Because the commit on the branch you're on isn't a direct ancestor of the branch
165165
In this case, Git does a simple three-way merge, using the two snapshots pointed to by the branch tips and the common ancestor of the two.
166166

167167
.Three snapshots used in a typical merge
168-
image::images/basic-merging-1.png[Three snapshots used in a typical merge.]
168+
image::images/basic-merging-1.png[Three snapshots used in a typical merge]
169169

170170
Instead of just moving the branch pointer forward, Git creates a new snapshot that results from this three-way merge and automatically creates a new commit that points to it.
171171
This is referred to as a merge commit, and is special in that it has more than one parent.
172172

173173
.A merge commit
174-
image::images/basic-merging-2.png[A merge commit.]
174+
image::images/basic-merging-2.png[A merge commit]
175175

176176
Now that your work is merged in, you have no further need for the `iss53` branch.
177177
You can close the issue in your issue-tracking system, and delete the branch:

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Git then creates a commit object that has the metadata and a pointer to the root
2323
Your Git repository now contains five objects: three _blobs_ (each representing the contents of one of the three files), one _tree_ that lists the contents of the directory and specifies which file names are stored as which blobs, and one _commit_ with the pointer to that root tree and all the commit metadata.
2424

2525
.A commit and its tree
26-
image::images/commit-and-tree.png[A commit and its tree.]
26+
image::images/commit-and-tree.png[A commit and its tree]
2727

2828
If you make some changes and commit again, the next commit stores a pointer to the commit that came immediately before it.
2929

3030
.Commits and their parents
31-
image::images/commits-and-parents.png[Commits and their parents.]
31+
image::images/commits-and-parents.png[Commits and their parents]
3232

3333
A branch in Git is simply a lightweight movable pointer to one of these commits.
3434
The default branch name in Git is `master`.
@@ -43,7 +43,7 @@ The only reason nearly every repository has one is that the `git init` command c
4343
====
4444

4545
.A branch and its commit history
46-
image::images/branch-and-history.png[A branch and its commit history.]
46+
image::images/branch-and-history.png[A branch and its commit history]
4747

4848
[[_create_new_branch]]
4949
==== Creating a New Branch
@@ -62,7 +62,7 @@ $ git branch testing
6262
This creates a new pointer to the same commit you're currently on.
6363

6464
.Two branches pointing into the same series of commits
65-
image::images/two-branches.png[Two branches pointing into the same series of commits.]
65+
image::images/two-branches.png[Two branches pointing into the same series of commits]
6666

6767
How does Git know what branch you're currently on?
6868
It keeps a special pointer called `HEAD`.
@@ -72,7 +72,7 @@ In this case, you're still on `master`.
7272
The `git branch` command only _created_ a new branch -- it didn't switch to that branch.
7373

7474
.HEAD pointing to a branch
75-
image::images/head-to-master.png[HEAD pointing to a branch.]
75+
image::images/head-to-master.png[HEAD pointing to a branch]
7676

7777
You can easily see this by running a simple `git log` command that shows you where the branch pointers are pointing.
7878
This option is called `--decorate`.
@@ -102,7 +102,7 @@ $ git checkout testing
102102
This moves `HEAD` to point to the `testing` branch.
103103

104104
.HEAD points to the current branch
105-
image::images/head-to-testing.png[HEAD points to the current branch.]
105+
image::images/head-to-testing.png[HEAD points to the current branch]
106106

107107
What is the significance of that?
108108
Well, let's do another commit:
@@ -114,7 +114,7 @@ $ git commit -a -m 'made a change'
114114
----
115115

116116
.The HEAD branch moves forward when a commit is made
117-
image::images/advance-testing.png[The HEAD branch moves forward when a commit is made.]
117+
image::images/advance-testing.png[The HEAD branch moves forward when a commit is made]
118118

119119
This is interesting, because now your `testing` branch has moved forward, but your `master` branch still points to the commit you were on when you ran `git checkout` to switch branches.
120120
Let's switch back to the `master` branch:
@@ -137,7 +137,7 @@ To show all of the branches, add `--all` to your `git log` command.
137137
====
138138

139139
.HEAD moves when you checkout
140-
image::images/checkout-master.png[HEAD moves when you checkout.]
140+
image::images/checkout-master.png[HEAD moves when you checkout]
141141

142142
That command did two things.
143143
It moved the HEAD pointer back to point to the `master` branch, and it reverted the files in your working directory back to the snapshot that `master` points to.
@@ -167,7 +167,7 @@ And you did all that with simple `branch`, `checkout`, and `commit` commands.
167167

168168
[[divergent_history]]
169169
.Divergent history
170-
image::images/advance-master.png[Divergent history.]
170+
image::images/advance-master.png[Divergent history]
171171

172172
You can also see this easily with the `git log` command.
173173
If you run `git log --oneline --decorate --graph --all` it will print out the history of your commits, showing where your branch pointers are and how your history has diverged.

0 commit comments

Comments
 (0)