Git Apprentice Second Edition Raywenderlich Tutorial Team - Download the ebook today and own the complete content
Git Apprentice Second Edition Raywenderlich Tutorial Team - Download the ebook today and own the complete content
https://ebookultra.com/download/kotlin-coroutines-by-tutorial-
mastering-coroutines-in-kotlin-and-android-2nd-edition-raywenderlich-
tutorial-team/
https://ebookultra.com/download/pro-git-2nd-edition-scott-chacon/
Professional Git 1st Edition Brent Laster
https://ebookultra.com/download/professional-git-1st-edition-brent-
laster/
https://ebookultra.com/download/git-in-practice-1st-edition-mike-
mcquaid/
https://ebookultra.com/download/git-for-humans-1st-edition-david-
demaree/
https://ebookultra.com/download/the-midwife-s-apprentice-lisa-french/
https://ebookultra.com/download/jurisprudence-tutorial-1st-edition-
galieva/
Git Apprentice Second Edition Raywenderlich Tutorial
Team Digital Instant Download
Author(s): raywenderlich Tutorial Team, Chris Belanger, Bhagat Singh
ISBN(s): 9781950325511, 1950325512
Edition: 2
File Details: PDF, 5.96 MB
Year: 2021
Language: english
Git Apprentice Git Apprentice
Git Apprentice
Chris Belanger & Bhagat Singh
Notice of Rights
All rights reserved. No part of this book or corresponding materials (such as text,
images, or source code) may be reproduced or distributed by any means without
prior written permission of the copyright owner.
Notice of Liability
This book and all corresponding materials (such as source code) are provided on an
“as is” basis, without warranty of any kind, express of implied, including but not
limited to the warranties of merchantability, fitness for a particular purpose, and
noninfringement. In no event shall the authors or copyright holders be liable for any
claim, damages or other liability, whether in action of contract, tort or otherwise,
arising from, out of or in connection with the software or the use of other dealing in
the software.
Trademarks
All trademarks and registered trademarks appearing in this book are the property of
their own respective owners.
raywenderlich.com 2
Git Apprentice
raywenderlich.com 3
Git Apprentice
raywenderlich.com 4
Git Apprentice
Key points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Where to go from here?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 3: Committing Your Changes . . . . . . . . . . . . . . . . . . . . . . . 42
What is a commit? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Working trees and staging areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Committing your changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Adding directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Looking at git log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Challenge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Key points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Where to go from here?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Chapter 4: The Staging Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Why staging exists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Undoing staged changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Moving files in Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Deleting files in Git. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Challenge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Key points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Where to go from here?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Chapter 5: Ignoring Files in Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Introducing .gitignore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Nesting .gitignore files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Looking at the global .gitignore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Finding sample .gitignore files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Challenge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Key points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Where to go from here?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Chapter 6: Git Log & History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Viewing Git history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
raywenderlich.com 5
Git Apprentice
raywenderlich.com 6
Git Apprentice
raywenderlich.com 7
L Book License
• You are allowed to use and/or modify the source code in Git Apprentice in as many
apps as you want, with no attribution required.
• You are allowed to use and/or modify all art, images and designs that are included
in Git Apprentice in as many apps as you want, but must include this attribution
line somewhere inside your app: “Artwork/images/designs: from Git Apprentice,
available at www.raywenderlich.com”.
• The source code included in Git Apprentice is for your personal use only. You are
NOT allowed to distribute or sell the source code in Git Apprentice without prior
authorization.
• This book is for your personal use only. You are NOT allowed to sell this book
without prior authorization, or distribute it to friends, coworkers or students; they
would need to purchase their own copies.
All materials provided with this book are provided on an “as is” basis, without
warranty of any kind, express or implied, including but not limited to the warranties
of merchantability, fitness for a particular purpose and noninfringement. In no event
shall the authors or copyright holders be liable for any claim, damages or other
liability, whether in an action of contract, tort or otherwise, arising from, out of or in
connection with the software or the use or other dealings in the software.
All trademarks and registered trademarks appearing in this guide are the properties
of their respective owners.
raywenderlich.com 8
Before You Begin
This section tells you a few things you need to know before you get started, such as
what you’ll need for hardware and software, where to find the project files for this
book, and more.
raywenderlich.com 9
i What You Need
• Git 2.32 or later. Git is the software package you’ll use for all the work in this
book. There are installers for macOS, Windows and Linux available for free from
the official Git page here: https://git-scm.com/downloads. We’ve tested this book
on Git 2.32.0, but you can follow along with older versions of Git as well.
raywenderlich.com 10
ii Book Source Code &
Forums
• https://github.com/raywenderlich/gita-materials/tree/editions/2.0
You can download the entire set of materials for the book from that page.
Forum
We’ve also set up an official forum for the book at https://
forums.raywenderlich.com/c/books/git-apprentice. This is a great place to ask
questions about the book or to submit any errors you may find.
raywenderlich.com 11
“For Russ and Skip.”
— Chris Belanger
— Bhagat Singh
raywenderlich.com 12
Git Apprentice About the Team
raywenderlich.com 13
v Acknowledgments
Content Development
We would like to thank Chris Belanger for his work on the previous edition of the
book.We also should mention Sam Davies whose evergreen video course is the basis
of this book.
raywenderlich.com 14
vi Introduction
There are usually two reasons a person picks up a book about Git: one, they are
unusually curious about how the software works at a deeper level; or two, they’re
frustrated and need something to solve their problems now.
Whatever situation brought you here, welcome! I’m happy to have you onboard. I
came to write this book for both of the above reasons. I am a tinkerer and hacker by
nature, and I love going deep into the internals of software to see what makes them
tick. But I, like you, found Git at first to be an inscrutable piece of software. My brain,
which had been trained in software development through the late 1990s, found
version control packages like SVN soothing, with their familiar client-server
architecture, Windows shell integration, and rather straightforward, albeit heavy,
processes.
When I came to use Git and GitHub about seven years ago, I found it inscrutable at
best; it seemed no matter which way I turned, Git was telling me I had a merge
conflict, or it was merging changes from the master branch into my current branch,
or quite often complaining about unstaged changes. And why was it called a “pull
request”, when clearly I was trying to push my changes into the master branch?
Little by little, I learned more about how Git worked; how to solve some of the
common issues I encountered, and I eventually got to a point where I felt
comfortable using it on a daily basis.
raywenderlich.com 15
Git Apprentice Introduction
This book gives a little more background on the why: or, in other words, “Why the
%^&$ did you do that to my repository, Git?!” Underneath the hood, you’ll find that
Git has a rather simple and elegant architecture, which is why it scales so well to the
kinds of globally distributed projects that use Git as their version control software,
via GitHub, GitLab, Bitbucket, or other cloud repository management solutions.
And while GUI-based Git frontends like Tower or GitHub Desktop are great at
minimizing effort, they abstract you away from the actual guts of Git. That’s why this
book takes a command-line-first approach, so that you’ll gain a better understanding
of the various actions that Git takes to manage your repositories — and more
importantly, you’ll gain a better understanding of how to fix things when Git does
things that don’t seem to make much sense.
This book works with a small repository that houses a simple ToDo system based on
text files that hold ideas (both good and bad) ideas for content for the website. It’s an
ideal way to learn about Git without getting bogged down in a particular language or
framework.
The next book in our mastering Git series, Advanced Git, which we encourage you to
explore once you’ve completed this book.
raywenderlich.com 16
Git Apprentice Introduction
Workflows
This section takes a look at some common Git workflows, such as the feature branch
workflow, Gitflow, a basic forking workflow, and even a centralized workflow.
Because of the flexibility of Git, lots of teams have devised interesting workflows for
their teams that work for them — but this doesn’t mean that there’s a single right
way to manage your development.
Learning by doing
Above all, the best advice I can give is to work with Git: find ways to use it in your
daily workflows, find ways to contribute to open-source projects that use Git to
manage their repositories, and don’t be afraid to try some of the more esoteric Git
commands to accomplish something. There’s little chance you’ll screw anything up
beyond repair, and most developers learn best when they inadvertently back
themselves into a technical rabbit-hole — then figure out how to dig themselves out.
I wish you all the best in your Git adventures. Time to Git going! — Chris Belanger
raywenderlich.com 17
Section I: Beginning Git
This section is intended to get newcomers familiar with Git. It will introduce the
basic concepts that are central to Git, how Git differs from other version control
systems, and the basic operations of Git like committing, merging, and pulling.
You may discover things in this section you didn’t quite understand about Git, even
if you’ve used Git for a long time.
raywenderlich.com 18
1 Chapter 1: A Crash Course
in Git
By Chris Belanger and Bhagat Singh
It can be a bit challenging to get started with command-line Git if you haven’t done
much work on the command line before. Since you’ll be interacting with Git through
the command line throughout this book, this chapter will take you through a quick
crash course on how to do it.
There’s a common workflow that serves as the foundation of most interactions you’ll
have with Git:
• Create a separate working area in the repository where you can make changes
without affecting anyone else.
• Optionally, notify the repository owner that your changes are ready to be
reviewed.
This chapter will take you through all the above actions to help you get familiar with
the basics of working with Git through the command line.
Although this chapter won’t explain everything in detail, it will give you enough
familiarity with a Git repository and the basic Git workflow to better understand the
chapters to come.
raywenderlich.com 19
Git Apprentice Chapter 1: A Crash Course in Git
The first step is to create your own personal online copy, or fork, of the remote
repository. That gives you a place to work online and lets you follow the instructions
in this chapter without affecting any of the millions of other people reading this
book and following along themselves.
• https://github.com/raywenderlich/programmer-jokes
raywenderlich.com 20
Other documents randomly have
different content
unpleasant to her, after every excursion,—and it was his constant
desire to promote the happiness of one so tenderly beloved. Perhaps
he took not the most certain way to increase her happiness;—but
that was the fault of his head—not his heart!
Mrs. North never teazed, or even asked her husband for any
gratification. She was, at once too amiable, and too polite to do
either; yet she had a way of her own—and a most graceful and
fascinating way it was—of leading him on to propose the very thing
she had resolved on,—and then yielding to his plan, with an air of
relinquishing some more favored scheme of her own, for the
pleasure of gratifying him. Indeed, every thing she did, was done in
the most amiable and graceful manner—even to the spending of
money, which she did with the air of a princess. And her husband
sometimes feared she was a little too profuse; but she dressed with
such taste; was so generous, and so much the belle wherever she
appeared, that he could not find it in his heart to supply her purse
less liberally.
For nearly three months Mr. and Mrs. North were scarcely at L——
for more than a week at a time; and the cold winds and bad roads
of November, alone led them to settle quietly at home. On every
return to L——, Mr. and Mrs. Lawrence had been duly visited; and
now, when the autumnal campaign was fairly over, their society was
more needed, more valued than ever. Scarcely twenty-four hours
passed, without bringing Mrs. Lawrence the favor of a longer or
shorter visit.
"And so, my dear Mrs. Lawrence, you have not been five miles from
L——, since my journey to Boston last August?"
Two things in this answer struck Mrs. North. "A cheaper mode!" Yes
—as Mr. Lawrence inherited no fortune, it was necessary for his wife
to think of economy. How fortunate for herself that Mr. North's father
was a rich man! "Knowledge—travelling to obtain knowledge!" The
idea had never before occurred to her mind. She had always
travelled solely for pleasure.
Mrs. Lawrence really felt attached to Mrs. North. Her amiable temper
and pleasing manners had won her affections, and she wished to do
her good. She soon learned that her friend had many false notions:
that, in her estimation, wealth was the most valuable distinction;
that show was elegance; and that dress and idleness were gentility.
She saw, too, that she was nearly, or quite destitute of internal
sources of happiness; that all the nobler powers of her mind lay
dormant; that she seemed to have no idea of intellectual pleasures.
Mrs. Lawrence had no conception of the difficulty of the task she
wished to accomplish; she knew not how deep-rooted were the evils
she wished to subdue; knew not that they were completely
intertwined with her whole mental constitution.
Mrs. Lawrence often heard Mrs. North talk of books; and she
directed her to a course of reading, which she thought would at
once prove highly interesting and beneficial. But Mrs. North had
never really read a book for pleasure, or for intellectual
improvement, in her life. She had never been taught by her parents,
and had never conceived the idea herself, that the object in the
acquisition of knowledge, was to fit her for the discharge of duties to
herself and others.
The knowledge she really possessed, was acquired for the express
purpose of display—to give her distinction in the circle in which she
moved. Of course she had gone about the acquisition of it, not as a
pleasure, but as a task that must be accomplished. Mrs. Lawrence
had likewise heard her speak of the benevolent societies with which
she had been connected in her native place, and she strove to
awaken her sympathies for the poor in L——, and excite interest in
benevolent enterprises of a higher order. But although Mrs. North
would give freely, and, particularly if a subscription paper was
handed about, would subscribe liberally, there was evidently no
heart in her charities. She could find no pleasure in searching out
the destitute and afflicted in her own person. If she heard of one
who was sick, she would perhaps send them a sum of money
preposterously large, that Mrs. North might be spoken of as a most
munificent lady; but she could not have made a basin of broth, to
have saved a life. She knew nothing of the system of benefitting the
poor at a very trifling expense of time and labor, by making
comfortable garments out of old ones that were lying useless, an
encumbrance to closets and drawers. It is nearly useless to give
such garments to the poor in an unprepared state; seldom have they
sufficient ingenuity, or patience, or industry, to turn them to
profitable account. Mrs. Lawrence was fully aware of this; and she
was remarkable for the ingenuity and dexterity with which she would
make a comfortable suit of clothes for a poor child, out of garments
that appeared not worth a farthing. She was a blessing to the poor
around her; and her husband had in no way to pay the penalty of
her charities, as is sometimes, unhappily, the case. Mrs. Lawrence
endeavored to interest Mrs. North in this way of doing good; but the
attempt was fruitless. How could a lady degrade herself by attending
to such occupations! How could the delicate and elegant Mrs. North
bend her beautiful person over such work; or soil and deface her
fair, round fingers by such menial employments! Equally unavailing
were all Mrs. Lawrence's efforts, to interest her friend in the
cultivation of flowers, or in any employment or pursuit, by which she
could make herself happy in solitude.
The piety of Mrs. North was in perfect accordance with every other
point in her character. At a season of revival of religion in her native
place, many of her youthful companions becoming deeply interested
in the subject, her sympathies were awakened; and she mistook
these feelings, as is, alas, too often the case, for renovation of heart.
—Beside, "religion walked in her golden slippers;" it was fashionable
to be benevolent, and charitable, and attend meetings; and Anna
Weston went with others; and with others she publicly and solemnly
"avouched the Lord to be her God," and consecrated herself to his
service! But one view of her own heart she had never had. She still
loved the world, and the things of the world, "the lusts of the eye,
and the pride of life," and scarcely felt, or knew that it was wrong.
She lived for herself; and she loved herself—supremely; and she was
not conscious, much less was Mr. North, that her strongly expressed
attachment to her husband, principally arose from the ability he
possessed to gratify her in all the selfish desires of her heart.
Mrs. Lawrence could not but perceive that the feelings of Mrs. North
were very superficial on the subject of religion; and she knew that
the views that resulted in such practice, must be erroneous. As a
christian, deeply interested in the honor of Him "who had redeemed
her to God by his own blood,"—and anxious that every one of his
professed disciples should "walk worthy of their high vocation," she
often conversed with Mrs. North on the subject; and by the gentlest
and most touching appeals, strove to touch her heart, and awaken
and enlighten her conscience. But here, too, she was unsuccessful.
Mrs. North would so readily assent to all she said, with
"Certainly"—"O, yes, every christian should feel and act thus,"—that
Mrs. Lawrence felt that the case was, at present, hopeless. There
was no feeling; there was not even thought;—it was a mere assent
of the voice.
At length Mrs. North became the joyful mother of a fine son; and her
feelings were in a glow of gratitude. Her heart seemed to expand
with love for every one. Her husband—her friend—never had they
been half so dear!—With her congratulatory kiss, while the tears of
deep tenderness suffused her eyes, Mrs. Lawrence whispered
—"Consecrate yourself, dearest Anna, and this precious little
immortal, to the service of Him who has been your benefactor and
preserver!" With tremulous lips, Mrs. North returned the kiss, and
emphatically whispered—"O dear friend, may I never forget the
impressions of this hour? May I never forget the deep debt of
gratitude I owe to my Father in heaven?"
But, alas, it was not the goodness of Ephraim alone that was "as the
morning cloud, and the early dew!" for the greater part of the
goodness of the whole human family is of the same transitory and
fleeting nature. At the end of six weeks, when Mrs. North left her
chamber, she was precisely the Mrs. North of the year before—
equally thoughtless, equally negligent of duty. With pain Mrs.
Lawrence witnessed all this;—with deep pain she saw indications
that the character of a fashionable woman must be supported at the
expense of being an unnatural mother.
Mrs. Lawrence was truly grieved when she found this arrangement
was made. She had foreseen the probability of it, but she could not
be reconciled to the measure. She justly considered maternal
feelings among the most sacred that belong to earth; and she knew
that nothing more strengthens a mother's love, than the entire
dependance of the child on her for comfort and happiness. She was
fully convinced, that anything that weakens this tie, that nature has
made so strong, must be injurious alike to both parent and offspring.
She was musing on the subject when her husband came in.
"Mrs. North has put the dear little boy out to nurse."
"She is a fashionable woman! Did you not expect it?"
"I feared it—but I blame Dr. G——, for had he not have proposed it,
I think Anna would have kept the poor little thing with her. He says,
too, that she must journey to confirm her health."
"Do you think so?—but time will show. Meantime I am going to take
you a journey."
"Me! where?"
"I have provided for them," said Mr. Lawrence. "Nurse Bevey has
promised to come and take care of them during our absence?"
"Well, since you have arranged it all," said Mrs. Lawrence, "do
propose to Alpheus that he and Anna accompany us. It may suffice,
—and prevent them from taking one of those long journies that I
begin to dread."
Mr. and Mrs. North were delighted with the proposal. Preparations
were immediately commenced, and at the appointed time, they all
set out on their excursion. We shall not travel with them. Suffice it to
say, that on the evening of the second day after their departure,
they arrived at Mrs. O——'s hotel, in Fryburg. Mr. Lawrence was
rather impatient, as the journey might have been performed in much
less time. But short stages, and long rests were necessary for Mrs.
North—at least she said so—and Mr. and Mrs. Lawrence could not
with propriety drive on before them.
On the morning after their arrival, on looking about them, the ladies
were both in raptures at the scenery around. They had seen nothing
like it before. But we will accompany them to the little Jockey-Cap
mountain, which lies not far from a mile from Mrs. O——'s, which
they ascended in the afternoon, and hear what they say of it there.
In a few minutes the ladies got over their fatigue,—and joined their
husbands to enjoy the prospect.
"What is the name of this beautiful sheet of water on our left, Mr.
Lawrence?" asked Mrs. North.
"It is called 'Lovell's pond,'" replied Mr. Lawrence. "It was on the
margin of this peaceful lake, as it should be called, that Capt. Lovell
and his company of militia, met Pangus, the Indian Sachem, at the
head of a part of his tribe, prepared for deadly conflict. In Lovell's
company was a man named John Chamberlain. His rifle, as well as
that of Pangus, had become foul from frequent firing. Standing but a
few paces apart, each cleaned his rifle at the pond—and each
commenced loading at the same moment,—while each watched the
motions of the other with the most intense interest—knowing that
he that was first ready to discharge his rifle, would undoubtedly be
sole survivor. The rifle of Chamberlain was so much worn, that in
being loaded, it primed itself. This circumstance decided the fate of
the Indian Chief—he fell."1
1 After the "fight" at Lovell's pond, the remains of the Pigwacket tribe of Indians, left
the woods and lakes of New Hampshire and Maine, for the broader waters and
deeper forests of Canada. In 1777, Chamberlain had become an old grey-headed
man,—living alone, and laboring in a saw mill to support himself. He was one evening
informed that a young Indian had appeared in the Village, with rifle, wampum belt
and tomahawk, having the noble bearing of old Pangus, the Sachem. Chamberlain
instantly took the alarm; but old as he was, was not intimidated. Well knowing the
Indian character and habits, about the dusk of the evening he put his mill in rapid
motion, raised his coat as a "decoy"—and retired to a short distance to watch what
might follow. In a short time he witnessed the cautious approach of the savage, who
repeatedly advanced and receded, ere he aimed his rifle at the coat. As soon as he
had fired, and raised himself to his full height, (which was above six feet) to ascertain
the effect of his aim, Chamberlain discharged the same rifle that had taken the life of
the Sachem. As the bullet went through his heart, young Pangus sprung some feet in
the air, and fell lifeless in the stream below.
"The beautiful swell of land, directly in front of us, and clothed with
verdure to its summit, is Starkes-hill," said Mr. Lawrence; "that on
our right, just back of the village, is Kearsarge mountain."
"And what is the name of this beautiful stream, that flows between
us, and the highlands?" asked Mrs. North.
"This river," replied Mr. North, "still retains its Indian appellation—the
Saco!"
"And see," said Mrs. Lawrence, "how it winds around and about, as
if reluctant to leave this broad and beautiful intervale, and striving to
linger in it to the last possible moment."
"I have been told," said Mr. Lawrence, "that before some short
canals were cut, to accelerate the passage of lumber down the
stream, that the Saco ran upwards of thirty miles, in this place, in
making the actual progress of only six towards the ocean."
"And then the beautiful, quiet village," said Mrs. Lawrence, "lying so
securely amid its guardian mountains, with its long, straight street,—
and its church and academy spires, pointing to heaven, speaking of
spiritual and intellectual improvement. O, this scene is perfect in
beauty!—and in grandeur! There the sublime and beautiful are most
happily associated. The overpowering awe that steals upon one,
while viewing those mighty efforts of creative power, which fills the
soul with sensations altogether too big for utterance,—is modified,
when the eye falls, and rests on the peaceful village, which speaks
of human society, comfort and happiness. It seems as if the
inhabitants, brought up with such scenes of beauty and sublimity
constantly before them, must be more free from base and ignoble
passions, than those who live and die amid scenery of a different
character. Every spot on which the eye rests, speaks of the grandeur,
the power, the benevolence—and, if I may so express myself, the
taste of the Divine Architect. I can conceive of nothing more
beautiful—more perfect!—and nothing can have a more elevating
effect on the soul of man! I must believe, with Dr. Dwight, that 'he
who does not find in the various beautiful, sublime, awful and
astonishing objects, presented to us in creation, irresistible and
glorious reasons for admiring, adoring, loving and praising his
Creator, has no claim to evangelical piety.'"
On the third morning after their arrival at Fryburg, Mr. and Mrs.
Lawrence prepared to return to L——. The latter was much surprised
when she found that Mr. and Mrs. North were not to return with
them.
"O, we are going through the notch of the White Mountains," said
Mrs. North. "We are told here, that the scenery beyond is infinitely
more magnificent than this, and well worth a much longer journey to
see."
"I doubt not its magnificence," said Mrs. Lawrence, "and should
exceedingly like to view it; yet I much doubt whether any scene, in
beauty of combination, can exceed that we have seen from the
Jockey-Cap. But the little boy, my dear Anna!—Are you not anxious
to see him?"
"Will you take the trouble, my dear friend," said Mr. North, "to look
in occasionally upon nurse, and see that she neglects not her duty?"
"O, do," said Mrs. North; "it will be a great relief to my feelings, to
know that your vigilant eye, is now and then upon the dear boy."
"I am truly grieved," said Mrs. Lawrence, when they were fairly on
their homeward journey—"I am truly grieved that Alpheus does not
return to L—— with us. I had hoped, that on becoming a mother,
Anna's character would undergo a change. I hoped she would learn
to love home, and domestic scenes. It is to be lamented, that such
qualities as she has, qualities that might make a superior woman,
should all be lost in the woman of fashion—the votary of pleasure.
Fain would I do her good if I could—but I know not how to acquire
influence over her mind."
Mrs. Lawrence called to see the "deserted baby" as she called him,
the next day after her return to L——, and continued to do so, once
or twice a week, until the return of his parents, which was delayed
for something more than a month. He grew finely,—and before his
mother's arrival, was beginning to "ca" and "coo" and smile in the
nurse's face. And Mrs. Lawrence felt that it would bring a severe
pang to her heart, were the first smile and look of love of an infant
of her own, bestowed on an hireling,—however worthy she might
be. But Mrs. North had no weakness of this kind; on the contrary,
she was delighted with the happiness he manifested in nurse's arms,
as it was incontestible proof of her faithful discharge of duty.
Eight years passed away, and in that time the number of Mrs.
North's children increased to four; but never was a woman less
incommoded by a growing family. Never was there one on whom
care sat more lightly. A few months confinement to L—— now and
then, was to her the most serious part of the business. Five or six
weeks, of as many winters, during this period, had been spent in
Boston or New-York; for a whole winter in L——, unless confined to
her chamber, Mrs. North declared would kill her outright. And the
expense was nothing to be thought of; for Mr. North must go to
purchase goods, and attend to other mercantile concerns; and
taking her with him made but little difference, as she must be
supported somewhere,—and her being with him made not a great
difference in the length of his stay. The summers she passed in L——
were rendered tolerable, by the society of those fashionable friends
she from time to time invited to her house.
At the close of the same period Mrs. Lawrence was the mother of
five children. She had almost given up the hope of doing Mrs. North
any personal good; but she watched over her friend's neglected
children, during the long periods of her absence from home, with as
much vigilance as was consistent with the faithful discharge of duty
to her own. So far from exhausting,—her diligence increased her
mental vigor; and her character was constantly improving in dignity,
and in every christian grace. Mr. Lawrence had been unremitting in
his attention to business,—and his property had gradually and
constantly increased. His house contained every thing necessary for
comfort, gentility, and intellectual improvement. All was in perfect
keeping. Good judgment, and correct taste were manifest in every
thing in and about the dwelling, while there was nothing like show
or splendor.
"Your husband is now rich, my dear Mrs. Lawrence," said Mrs. North,
after one of her visits to New York, "and I wonder you do not
change, in some measure, your style of furniture and living. You
should have an elegant centre-table in your drawing-room, and
damask curtains, like mine, instead of those modest ones that now
hang at the windows,—beside some beautiful ornaments for the
mantel. And in your library, that you love so well, and which is so
nobly stocked with books, you must have some such delightful
lounges and chairs as I saw in New York,—that you may be quite at
your ease while reading. A few of these things would make your
house look delightfully."
"Undoubtedly you can; but why not pay some attention to fashion
and elegance, both about your house and dress? I really wonder at
the simplicity of your dress! Your apparel is always very well,
certainly, as to material and form,—but it is too plain. I wish you
would commission me to get some dresses for you;—you would look
like another creature under my hands;—and you can perfectly well
afford to consult your taste in these matters."
In a short time, Dr. G—— arrived at the house of Mr. Lawrence, and
after examining the suffering child, gave his opinion that he could
not long survive the injury he had sustained.
"O, my dear friend, how can I ever be sufficiently grateful for your
kindness? My sensibilities are such, that it shatters my nerves to
pieces to witness suffering in any one—how much more in one's own
sweet infant! How must the dear boy suffer, were there no one to
help him but his poor, sensitive mother! It is really a misfortune to
have a heart so feelingly constituted!"
The little boy lingered several weeks in great pain,—and then his
liberated spirit took its flight from its decaying tenement. Three
months after, Mrs. North became the mother of her fifth child; and
as soon as she was able to go out, it was sent from home to nurse,
like all its predecessors,—and she started on a journey to visit her
parents. This journey was very well—very right; but Mrs. Lawrence
feared that the impression made by her recent trouble, was fast
fading away; that the rod of affliction would have no correcting
influence;—produce no favorable change, either in character or
conduct. When preparing to leave home, to have her mourning
dresses of the most elegant, fashionable, and becoming kind,
engrossed the whole woman, and left no room for any other thought
or feeling. How inconceivably obdurate may the heart, even of a
mother, be rendered by selfish indulgence!
The fears of Mrs. Lawrence were but too well founded. It was
October when Mrs. North returned from her visit to her parents; and
a few weeks after Mrs. Lawrence perceived there were great, and
unusual preparations making for another journey. But she asked no
questions. Her heart sickened; but she despaired of doing good, and
was weary of giving unheeded admonitions; weary of attempting to
touch a heart incased in the "triple mail" of vanity, selfishness, and
love of pleasure.
Without inquiry she soon learned from Mrs. North, that she and Mr.
North designed to spend the greater part of the winter in
Washington. Mr. North had business as far as Philadelphia; they had
both ever been anxious to visit the seat of government, and hear the
eloquence of the senate; so good an opportunity might never again
occur,—"and, really," Mrs. North added, "I have passed through
scenes so heart-rending, so wearing to my constitution, that I need
something more than ordinary, to restore me to myself again." She
could leave home with an easy heart; for the unfaithful, cruel
nursery-maid was dismissed from her service; and she had engaged
Mrs. Berry, Mrs. Lawrence's own good nurse, (at very high wages, it
was true,) to take care of her children, and superintend her
household while she should be absent. At the appointed time they
departed.
"Why will you thus grieve, my dear Ellen?" said Mr. Lawrence. "It is
utterly useless."
"I know it, Horace, yet how can I help it? O, how completely do the
love of pleasure, and the pride of fashion, destroy all the best
feelings of the heart!—all the finest sensibilities of our natures!—To
see a woman, capable of better things, thus bent on gratifying
herself, in despite of every call of duty, and warning of Providence,—
and leading an amiable husband to neglect every thing but herself, is
dreadful; and yet, it is for the poor neglected children I grieve. What
is to become of them? What can be expected of them?—thus
continually left to their own guidance."
Mrs. Lawrence received frequent letters from Mrs. North, filled with
glowing descriptions of what she was seeing, and hearing, and
doing; and wishes that her kind friend were with her to participate in
such pleasures—pleasures that would suit even the correct and
refined taste of Mrs. Lawrence,—they were so intellectual. She
frequently expressed regret that time flew so rapidly, as she dreaded
to leave scenes so replete with pleasure. In every letter she would
send kisses, or something equally valuable to her dear little ones;
but said she felt perfectly easy about them, under the care of good
Mrs. Berry; and having the eye of the best of friends frequently upon
them.
Mr. and Mrs. North had been absent something more than two
months, when Mr. Lawrence received a letter from the former,
requesting the loan of a hundred or two of dollars. Mr. North said he
had written to Mr. Mason for a remittance; but having a payment to
make out, he had not been able to forward it to him. If Mr. Lawrence
would oblige him, doubtless Mr. Mason would in a short time be able
to reimburse him; if not, Mr. North would do so, immediately on his
return to L——.
The very day this letter was received, Mr. Mason called at the office
of Mr. Lawrence, to consult with him concerning what was to be
done in the present juncture of Mr. North's affairs,—and as a
preliminary measure, to secure to himself the store and goods it
contained, which would scarcely be sufficient to satisfy his just
demands. Mr. North's debts were numerous, and his creditors were
becoming clamorous; and although Mr. Mason had written to him, he
seemed not to be alarmed, and had given no directions.
Three days after this, all property that could be found, belonging to
Mr. North, was seized by his creditors.
"My dear Horace," said the greatly agitated Mrs. Lawrence, "what
will Alpheus and Anna do?—what can they do?"
"They must begin the world again, upon better principles," said Mr.
Lawrence. "I hope they will learn wisdom from experience."
"But what can we do for them, my dear husband? You will receive
them here when they arrive? Anna will feel so wretchedly!"
"True—and let us hope that this event will only prove a 'blessing in
disguise,' to teach her what she would learn in no other way. Let us
hope it will be for the best."
No. II.
"When this power awakes, then has this world its full expansion;
but when he slumbers with a tranquil spirit, then the whole
system fades away."
This most ancient Pagan theologist believed that all things were
created by a Being whom he represents as invisible and
incomprehensible, and to whom he has given the appellation of THE
COUNSELLOR of LIGHT and SOURCE of LIFE; but he has degraded this
sublime idea of the Almighty by supposing that from an egg, the
progeny of chance, all mankind have been produced.
The philosopher Leucippus, who was also a Grecian, taught that "the
universe was infinite; that it was in part a plenum and in part a
vacuum—that the plenum contained innumerable corpuscles or
atoms of various figures, which, falling into the vacuum, struck
against each other; and hence arose a variety of curvilinear motions,
which continued till at length atoms of similar forms met together,
and bodies were produced. The primary atoms being specifically of
equal weight, and not being able, on account of their multitude, to
move in circles, the smaller rose to the exterior parts of the vacuum,
whilst the larger (entangling themselves,) formed a spherical shell,
which revolved about its centre and which included within it all kinds
of bodies. This central mass was gradually increased by a perpetual
accession of particles from the surrounding shell, till at last (says
Leucippus) the EARTH was formed. In the mean time the spherical
shell was continually supplied with new bodies, which, in its
revolution, it gathered from without. Of the particles thus collected
in the spherical shell, some in their combination formed humid
masses, which, by their circular motion, gradually became dry and
were at length ignited and became STARS. The SUN was formed in the
same manner in the exterior surface of the shell; and the moon in its
interior surface. In this manner the universe was formed."—Such a
jargon of learned nonsense requires no comment; yet Leucippus had
for a time the reputation of possessing superior wisdom!
Hippasus and Heraclitus maintained that the being who was the
author of all things was fire.
Zeno advocated with great zeal the theory of "two principles," spirit
and matter, one active and the other passive.
Mahomet maintained that the world was created in two days, and
the mountains were afterwards placed upon it; and that during these
and two additional days the inhabitants were formed; and in two
more the seven heavens were created.
The waters of the deluge are ridiculously represented by him as
being poured out of an oven. The Alcoran says that all men were
drowned except Noah and his family; and that at an appointed time
God said, "O earth swallow up the waters!" "and thou, O heaven,
withhold thy rain!" and immediately the waters abated. Is it not
surprising that so many thousands should have adopted this theory.
Mr. Thomas Burnet was a man of genius and taste, a learned divine
and a philosopher; but he suffered his imagination to take the lead
of his judgment. He was the friend and object of admiration of
Addison. His work is entitled, "The sacred theory of the earth,
containing an account of the origin of the earth and of all the
general changes which it hath already undergone or is to undergo till
the consummation of all things." He taught that originally the earth
was a fluid mass, composed of various materials; that of these the
heaviest descended to the centre, and formed a hard and solid body
—that the waters took their station round this body—and that all
lighter fluids rose above the water, forming first a strata of oily
matter and next a strata of air—that the air was then impure,
containing great quantities of earthy particles, which gradually
subsided and composed a crust of earth and oil—that this crust was
the first habitable part of the earth and abode of man and other
animals—that the surface was uniform, no mountains nor seas nor
other inequalities were to be seen—that in this state it remained
about sixteen centuries; by which time the heat of the sun gradually
drying the crust, produced cracks or fissures, which gradually
penetrating deeper and deeper, finally perforated the entire crust—
that in an instant the whole split in pieces and fell into the great
abyss of water. This (says Burnet) was the UNIVERSAL DELUGE!—That
with these masses of earth were carried vast quantities of air, and
the masses dashing violently against each other, accumulated and
divided so irregularly, that great cavities filled with air were left
between them—that the waters gradually opened passages into
these cavities. In proportion as they were filled with water, the
surface of the earth began to discover itself in the most elevated
places, till at last the waters appeared no where but in those
extensive valleys which now contain the ocean—that islands and sea
rocks are small fragments, and continents are large masses of this
ancient crust.
How Burnet could imagine that man and other land animals could
have inhabited an earth which had a plane surface, it is difficult to
conceive. If these animals resembled those that at present inhabit
this planet, they could not have subsisted without water; and if this
element was supplied by rain, and the earth had no inequalities of
surface, the whole earth must have been covered by a sea or at
least been a swamp. It was perhaps this reflection that generated
the idea of Demailet, that man was originally a fish.
He was of opinion that the ancient chaos from which this earth
originated, was the atmosphere of a comet; that the detail given by
Moses is not of the creation of the world, but of its passage from the
state of a comet to that of a planet, so as to make it habitable.
He informs us that this matter issued from the sun, not in the form
of globes, but of liquid torrents of fire; and that a projectile motion
having been communicated by the stroke of the comet, the light
particles separated from the dense, which, by their mutual
attractions, formed globes of different solidities; and that the
projectile force being proportioned to the density of the particles,
determined the respective distances from the sun to which they
would be carried. Our author having thus (at one blow of a comet)
created the planets out of the superabundant materials of the sun,
and having driven them to the distances of their spheres from that
body, was put to a great straight to prevent them from obeying the
law of projectiles, in returning whence they issued, and in obliging
them to revolve round a common centre. This part of his theory is
very lame indeed. He first unphilosophically ascribes this change of
direction to an acceleration of velocity; and secondly, the
acceleration he very erroneously supposed would take place by the
anterior particles attracting and hastening the posterior ones, and by
the posterior ones pushing forward or hastening the anterior ones.
But appearing to be unsatisfied himself with this explanation, he
next makes the shock of the comet remove the sun from its former
situation—so that when the planets, according to the law of
projectiles, returned to the place from whence they had departed,
they did not enter into the sun again, who had thus fortunately
stepped out of their way, or Buffon's ingenious creation would have
been entirely destroyed.
But to proceed. He supposes that the earth, having acquired its
present shape by its motion while in a liquid state, the fire was
eventually extinguished by its rapid passage through space, or after
having consumed all the combustible matter it contained. Mr. Buffon
acknowledges that the constituent parts of the earth's crust are now
of very different densities; but he gives no satisfactory explanation
for the change which must have taken place, if as he supposed, they
were once homogeneous. Nor does he account for the separation of
the land from the water. It is true he leaves us to infer that such a
separation took place; for he says, that "the motion of the waters is
coeval with time." He also says, that the waters occupy the lowest
grounds, and that all the mountains have been formed at the bottom
of the sea, by means of currents and tides. His primeval world must
therefore have had cavities, in which the waters were preserved.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com