Version Control with Git 2nd Edition Jon Loeliger pdf download
Version Control with Git 2nd Edition Jon Loeliger pdf download
download pdf
https://ebookultra.com/download/version-control-with-git-2nd-edition-
jon-loeliger/
https://ebookultra.com/download/pro-git-2nd-edition-scott-chacon/
https://ebookultra.com/download/vibration-with-control-2nd-edition-
daniel-j-inman/
https://ebookultra.com/download/coping-with-trauma-hope-through-
understanding-2nd-edition-jon-g-allen/
https://ebookultra.com/download/classical-feedback-control-with-
matlab-and-simulink-2nd-edition-lurie/
Professional Git 1st Edition Brent Laster
https://ebookultra.com/download/professional-git-1st-edition-brent-
laster/
https://ebookultra.com/download/aids-inc-2nd-edition-jon-rappoport/
https://ebookultra.com/download/professional-baking-college-version-
with-cd-rom-4th-edition-wayne-gisslen/
https://ebookultra.com/download/teaching-with-love-logic-taking-
control-of-the-classroom-2nd-edition-jim-fay/
https://ebookultra.com/download/control-and-constraint-in-e-learning-
choosing-when-to-choose-1st-edition-jon-dron/
Version Control with Git 2nd Edition Jon Loeliger Digital
Instant Download
Author(s): Jon Loeliger, Matthew McCullough
ISBN(s): 9781449316389, 1449316387
Edition: 2
File Details: PDF, 14.54 MB
Year: 2012
Language: english
SECOND EDITION
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: 800-998-9938 or [email protected].
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Version Control with Git, the image of the image of a long-eared bat, and related
trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-31638-9
[LSI]
1344953139
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Background 1
The Birth of Git 2
Precedents 4
Timeline 6
What’s in a Name? 7
2. Installing Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Using Linux Binary Distributions 9
Debian/Ubuntu 9
Other Binary Distributions 10
Obtaining a Source Release 11
Building and Installing 12
Installing Git on Windows 13
Installing the Cygwin Git Package 14
Installing Standalone Git (msysGit) 15
3. Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
The Git Command Line 19
Quick Introduction to Using Git 21
Creating an Initial Repository 21
Adding a File to Your Repository 22
Configuring the Commit Author 24
Making Another Commit 24
Viewing Your Commits 25
Viewing Commit Differences 26
Removing and Renaming Files in Your Repository 26
Making a Copy of Your Repository 27
Configuration Files 28
iii
Configuring an Alias 30
Inquiry 30
6. Commits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Atomic Changesets 66
Identifying Commits 67
Absolute Commit Names 67
refs and symrefs 68
Relative Commit Names 69
Commit History 72
Viewing Old Commits 72
iv | Table of Contents
Commit Graphs 74
Commit Ranges 78
Finding Commits 83
Using git bisect 83
Using git blame 87
Using Pickaxe 88
7. Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Reasons for Using Branches 89
Branch Names 90
Dos and Don’ts in Branch Names 91
Using Branches 91
Creating Branches 93
Listing Branch Names 94
Viewing Branches 94
Checking out Branches 97
A Basic Example of Checking out a Branch 97
Checking out When You Have Uncommitted Changes 98
Merging Changes into a Different Branch 99
Creating and Checking out a New Branch 101
Detached HEAD Branches 102
Deleting Branches 103
8. Diffs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Forms of the git diff Command 108
Simple git diff Example 112
git diff and Commit Ranges 115
git diff with Path Limiting 117
Comparing How Subversion and Git Derive diffs 119
9. Merges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Merge Examples 121
Preparing for a Merge 122
Merging Two Branches 122
A Merge with a Conflict 124
Working with Merge Conflicts 128
Locating Conflicted Files 129
Inspecting Conflicts 129
How Git Keeps Track of Conflicts 134
Finishing Up a Conflict Resolution 135
Aborting or Restarting a Merge 137
Merge Strategies 137
Degenerate Merges 140
Table of Contents | v
Normal Merges 142
Specialty Merges 143
Applying Merge Strategies 144
Merge Drivers 145
How Git Thinks About Merges 146
Merges and Git’s Object Model 146
Squash Merges 147
Why Not Just Merge Each Change One by One? 148
vi | Table of Contents
Non–Fast-Forward Pushes 219
Fetching the Alternate History 221
Merging Histories 222
Merge Conflicts 223
Pushing a Merged History 223
Remote Configuration 223
Using git remote 224
Using git config 225
Using Manual Editing 226
Working with Tracking Branches 227
Creating Tracking Branches 227
Ahead and Behind 230
Adding and Deleting Remote Branches 231
Bare Repositories and git push 232
Table of Contents | ix
Following Files that Moved 380
Keep, But Don’t Track, This File 381
Have You Been Here Before? 382
Wikis 402
GitHub Pages (Git for Websites) 403
In-Page Code Editor 405
Subversion Bridge 407
Tags Automatically Becoming Archives 408
Organizations 409
REST API 410
Social Coding on Closed Source 411
Eventual Open Sourcing 411
Coding Models 412
GitHub Enterprise 414
GitHub in Sum 416
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
x | Table of Contents
Preface
Audience
Although some familiarity with revision control systems will be good background
material, a reader who is not familiar with any other system will still be able to learn
enough about basic Git operations to be productive in a short while. More advanced
readers should be able to gain insight into some of Git’s internal design and thus master
some of its more powerful techniques.
The main intended audience of this book should be familiar and comfortable with the
Unix shell, basic shell commands, and general programming concepts.
Assumed Framework
Almost all examples and discussions in this book assume the reader has a Unix-like
system with a command-line interface. The author developed these examples on
Debian and Ubuntu Linux environments. The examples should work under other
environments, such as Mac OS X or Solaris, but the reader can expect slight variations.
A few examples require root access on machines where system operations are needed.
Naturally, in such situations, you should have a clear understanding of the responsi-
bilities of root access.
xi
The concepts covered in Chapter 4 are essential for a firm grasp on Git’s object model.
They set the stage and prepare the reader for a clearer understanding of many of Git’s
more complex operations.
Chapters 5 through 11 cover various topics in more detail. Chapter 5 describes the
index and file management. Chapters 6 and 10 discuss the fundamentals of making
commits and working with them to form a solid line of development. Chapter 7 intro-
duces branches so that you may manipulate several different lines of development from
your one local repository. Chapter 8 explains how Git derives and presents “diffs.”
Git provides a rich and powerful ability to join different branches of development. The
basics of branch merging and resolving merge conflicts are covered in Chapter 9. A key
insight into Git’s model is to realize that all merging performed by Git happens in your
local repository in the context of your current working directory. Chapters 10 and 11
expose some operations for altering, storing, tracking, and recovering daily develop-
ment within your development repository.
The fundamentals of naming and exchanging data with another, remote repository are
covered in Chapter 12. Once the basics of merging have been mastered, interacting
with multiple repositories is shown to be a simple combination of an exchange step
plus a merge step. The exchange step is the new concept covered in this chapter and
the merge step is covered in Chapter 9.
Chapter 13 provides a more philosophical and abstract coverage of repository
management “in the large.” It also establishes a context for Chapter 14 to cover patch
handling when direct exchange of repository information isn’t possible using Git’s
native transfer protocols.
The next four chapters cover advanced topics of interest: the use of hooks (Chap-
ter 15), combining projects and multiple repositories into a superproject (Chap-
ter 16), and interacting with Subversion repositories (Chapter 17).
Chapters 19 and 20 provide some advanced examples and clever tips, tricks, and tech-
niques that may help transform you into a true Git guru.
Finally, Chapter 21 introduces GitHub and explains how Git has enabled a creative,
social development process around version control.
Git is still evolving rapidly because there is an active developer base. It’s not that Git is
so immature that you cannot use it for development; rather, ongoing refinements and
user interface issues are being enhanced regularly. Even as this book was being written,
Git evolved. Apologies if I was unable to keep up accurately.
I do not give the command gitk the complete coverage that it deserves. If you like
graphical representations of the history within a repository, you should explore gitk.
Other history visualization tools exist as well, but they are not covered here either. Nor
am I able to cover a rapidly evolving and growing host of other Git-related tools. I’m
not even able to cover all of Git’s own core commands and options thoroughly in this
book. Again, my apologies.
xii | Preface
Perhaps, though, enough pointers, tips, and direction can be found here to inspire
readers to do some of their own research and exploration!
Furthermore, you should be familiar with basic shell commands to manipulate files
and directories. Many examples will contain commands such as these to add or remove
directories, copy files, or create simple files:
$ cp file.txt copy-of-file.txt
$ mkdir newdirectory
$ rm file
$ rmdir somedir
$ echo "Test line" > file
$ echo "Another line" >> file
Preface | xiii
Commands that need to be executed with root permissions appear as a sudo operation:
# Install the Git core package
How you edit files or effect changes within your working directory is pretty much up
to you. You should be familiar with a text editor. In this book, I’ll denote the process
of editing a file by either a direct comment or a pseudocommand:
# edit file.c to have some new text
$ edit index.html
xiv | Preface
Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course
Technology, and dozens more. For more information about Safari Books Online, please
visit us online.
How to Contact Us
Please address comments and questions concerning this book to the publisher:
O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)
We have a web page for this book, where we list errata, examples, and any additional
information. You can access this page at:
http://oreil.ly/VCWG2e
To comment or ask technical questions about this book, send email to:
[email protected]
For more information about our books, courses, conferences, and news, see our website
at http://www.oreilly.com.
Find us on Facebook: http://facebook.com/oreilly
Follow us on Twitter: http://twitter.com/oreillymedia
Watch us on YouTube: http://www.youtube.com/oreillymedia
Acknowledgments
This work would not have been possible without the help of many other people. I’d
like to thank Avery Pennarun for contributing substantial material to Chapters 15, 16,
and 18. He also contributed some material to Chapters 4 and 9. His help was appre-
ciated. I’d like to thank Matthew McCullough for the material in Chapters 17 and 21,
assorted suggestions, and general advice. Martin Langhoff is paraphrased with
permission for some repository publishing advice in Chapter 13, and Bart Massey’s tip
on keeping a file without tracking is also used with permission. I’d like to publicly thank
those who took time to review the book at various stages: Robert P. J. Day, Alan Hasty,
Paul Jimenez, Barton Massey, Tom Rix, Jamey Sharp, Sarah Sharp, Larry Streepy, Andy
Wilcox, and Andy Wingo. Robert P. J. Day, thankfully, took the time to review both
editions of the book front to back.
Also, I’d like to thank my wife Rhonda, and daughters Brandi and Heather, who pro-
vided moral support, gentle nudging, Pinot Noir, and the occasional grammar tip. And
Preface | xv
thanks to Mylo, my long-haired dachshund who spent the entire writing process curled
up lovingly in my lap. I’d like to add a special thanks to K. C. Dignan, who supplied
enough moral support and double-stick butt-tape to keep my behind in my chair long
enough to finish this book!
Finally, I would like to thank the staff at O’Reilly as well as my editors, Andy Oram
and Martin Streicher.
Attributions
Linux® is the registered trademark of Linus Torvalds in the United States and other
countries.
PowerPC® is a trademark of International Business Machines Corporation in the
United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
xvi | Preface
CHAPTER 1
Introduction
Background
No cautious, creative person starts a project nowadays without a back-up strategy.
Because data is ephemeral and can be lost easily—through an errant code change or a
catastrophic disk crash, say—it is wise to maintain a living archive of all work.
For text and code projects, the back-up strategy typically includes version control, or
tracking and managing revisions. Each developer can make several revisions per day,
and the ever increasing corpus serves simultaneously as repository, project narrative,
communication medium, and team and product management tool. Given its pivotal
role, version control is most effective when tailored to the working habits and goals of
the project team.
A tool that manages and tracks different versions of software or other content is referred
to generically as a version control system (VCS), a source code manager (SCM), a
revision control system (RCS), and several other permutations of the words “revision,”
“version,” “code,” “content,” “control,” “management,” and “system.” Although the
authors and users of each tool might debate esoterics, each system addresses the same
issue: develop and maintain a repository of content, provide access to historical editions
of each datum, and record all changes in a log. In this book, the term version control
system (VCS) is used to refer generically to any form of revision control system.
This book covers Git, a particularly powerful, flexible, and low-overhead version con-
trol tool that makes collaborative development a pleasure. Git was invented by Linus
Torvalds to support the development of the Linux®1 kernel, but it has since proven
valuable to a wide range of projects.
1. Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
1
The Birth of Git
Often, when there is discord between a tool and a project, the developers simply create
a new tool. Indeed, in the world of software, the temptation to create new tools can be
deceptively easy and inviting. In the face of many existing version control systems, the
decision to create another shouldn’t be made casually. However, given a critical need,
a bit of insight, and a healthy dose of motivation, forging a new tool can be exactly the
right course.
Git, affectionately termed “the information manager from hell” by its creator (Linus is
known for both his irascibility and his dry wit), is such a tool. Although the precise
circumstances and timing of its genesis are shrouded in political wrangling within the
Linux kernel community, there is no doubt that what came from that fire is a well-
engineered version control system capable of supporting the worldwide development
of software on a large scale.
Prior to Git, the Linux kernel was developed using the commercial BitKeeper VCS,
which provided sophisticated operations not available in then-current, free software
VCSs such as RCS and the concurrent version system (CVS). However, when the
company that owned BitKeeper placed additional restrictions on its “free as in beer”
version in the spring of 2005, the Linux community realized that BitKeeper was no
longer a viable solution.
Linus looked for alternatives. Eschewing commercial solutions, he studied the free
software packages but found the same limitations and flaws that led him to reject them
previously. What was wrong with the existing VCSs? What were the elusive missing
features or characteristics that Linus wanted and couldn’t find?
Facilitate Distributed Development
There are many facets to “distributed development,” and Linus wanted a new VCS
that would cover most of them. It had to allow parallel as well as independent and
simultaneous development in private repositories without the need for constant
synchronization with a central repository, which could form a development
bottleneck. It had to allow multiple developers in multiple locations even if some
of them were offline temporarily.
Scale to Handle Thousands of Developers
It isn’t enough just to have a distributed development model. Linus knew that
thousands of developers contribute to each Linux release. So any new VCS had to
handle a very large number of developers whether they were working on the same
or different parts of a common project. And the new VCS had to be able to integrate
all of their work reliably.
Perform Quickly and Efficiently
Linus was determined to ensure that a new VCS was fast and efficient. In order to
support the sheer volume of update operations that would be made on the Linux
kernel alone, he knew that both individual update operations and network transfer
2 | Chapter 1: Introduction
Random documents with unrelated
content Scribd suggests to you:
CHAPTER XIV.
Just at this moment a gentle tap was heard at the door; Lady
Gordon gave her permission to enter; and the opening door
displayed to their astonished eyes, Howard himself.
Yes, there he was, to all appearance perfectly well,—the man
whom they had been mourning over as dead, stood before them in
flesh and blood, with no other difference from his usual air, than that
he looked rather flushed with exercise, and somewhat surprised at
his reception.
"Mr. Howard!" gasped Lady Gordon, scarcely believing her senses.
Emma was speechless with twenty different feelings.
"I fear I am an unwelcome visitor," said he, amazed at his
reception; "shall I withdraw?"
Before either of the ladies could reply, Sir William precipitately
entered the room; he had apparently been in the act of dressing, for
he made his appearance without a coat, and unmindful of where he
was, he rushed up to Howard, and actually embracing him in the
excitement of his joy, exclaimed:
"My dear fellow, twenty millions of welcomes to you, how came
you here—we never thought to see you again!"
Lady Gordon too, had risen, and clasping both his hands in hers,
she exclaimed:
"Oh, how I rejoice to see you alive—you cannot think how we all
grieved when we heard you were dead!"
It was now Howard's turn to look bewildered: he turned from the
husband to the wife in uncontrollable amazement, and said:
"May I ask what is the meaning of all this—are you performing a
comedy or acting a charade!"
"Why I suppose," said Sir William, recovering himself a little, "we
do all seem rather frantic to you, since you must be alike ignorant of
our anxieties and the relief your presence has occasioned. The fact
is, we heard you were dead!"
"Indeed!" exclaimed Howard.
"Take care, or Mr. Howard will begin to believe it too, and that will
frighten him," said Rosa, laughing almost hysterically.
"But do tell me what you thought was the matter with me," said
Howard impatiently.
"We heard you had fallen and been killed amongst the rocks," said
Sir William, "and we were very unhappy about it. I assure you, you
have been wept by bright eyes, and fair cheeks have turned pale at
the news of your death. There is not a man in the whole county has
been more talked of than you; the news of your melancholy death
reached us in the gayest moment of a fête, sent Lady Gordon into
fits, and all the company out of the house, broke up the dance,
interrupted six tender flirtations and three rubbers at whist, in short,
caused more unhappiness, disappointment, and dismay, than an
ordinary individual would reasonably expect to excite either living or
dying."
"Really it is a very uncommon fate for a man to hear the
lamentations occasioned by his death, and if what you say is not
exaggerated, Sir William, I ought to be greatly flattered," replied
Howard smiling, but at the same time looking round the room to see
what was become of the one face, whose expression he was most
anxious to read. But Emma was gone; she had left the room without
a word of congratulatory greeting, or a single expression of interest.
"I cannot think how you can jest about so serious an affair,
William," said his wife reproachfully, "you did not jest, however,
whilst you believed it; he is not quite without feeling, Mr. Howard."
"And did you honor me with tears, Lady Gordon?" said the young
clergyman, taking her hand with an irrepressible feeling of
gratification. "That was a thing almost worth dying for."
"Come, come," said Sir William interposing, "do not be making
love to Rosa before my face; though she did cry, hers were not the
only tears shed on the occasion, nor the most flattering to you."
"Who else wept for me?" enquired he with something more than
curiosity.
"Your old housekeeper, and your gardener's daughter," replied
Lady Gordon maliciously.
"Nobody else?"
"Abominable conceit—who else do you expect to hear of?"
exclaimed she, "I declare all men are alike, if you give the smallest
encouragement to their good opinion of themselves, they set no
bounds to their presumptuous expectations. I shall tell you no more.
Find out for yourself who feels any interest in your fate."
"Miss Carr expressed great sensibility on the occasion," interrupted
Sir William, "I was dancing with her at the time the news arrived,
and she said:
"'Dear me, how very shocking—poor young man.'"
"Thank you," replied Howard with a glow of satisfaction, "you
have told me quite enough to satisfy a much less modest man than I
am. I have heard sufficient. But I think I know how the report arose.
I was left behind at a riding party, as the girth of my saddle broke,
and I stopped at a country shop to get it repaired. I dare say in the
imperfect Welsh which was all we could muster of the country's
language, there was some confusion made between a broken girth
and a broken neck, which gave rise to the distressing intelligence."
"That may be very possible," replied Lady Gordon, "but I shall
never in future believe any report of your misfortunes again, and if
you want me to grieve again for you, you must break your neck in
good earnest."
"Excuse me, but I have no wish to cause you any concern, Lady
Gordon, or to put your feelings to such a test."
"By the bye, when did you arrive, Howard?" enquired the baronet.
"About two hours ago; and I own I was rather surprised to find
my house shut up, and nobody at home; but if my servants thought
me dead, it was all very natural."
"No doubt they will tell you they were afraid of remaining lest you
should walk again," observed Sir William.
"As I do not know when they will return," continued he, "and I do
not wish to break into my house, I must throw myself on your
hospitality for to-day, if you will receive a poor wanderer."
Of course he was made extremely welcome by his friends, and
invited to remain as long as was convenient. It was very pleasant to
be so kindly received; but there was another voice he was longing to
hear welcome him, another hand he wished to press, another smile
to bless his eyes. As soon as he could he left Lady Gordon, and went
to look for Emma. In the breakfast-room, the library, the
conservatory, the flower-garden he sought her, but in vain; in fact
she had shut herself into her own room, to give utterance, in
grateful thanks, to the emotions which swelled her heart; emotions
far too powerful for words.
At the moment she could not have encountered him with anything
like a due and decorous dignity; had she seen him, she must have
been guilty of expressing too warmly her interest in his welfare: it
would not do to flatter him with a knowledge how very glad she was
at his having safely returned; for he was but a man, and as such,
liable of course to all the foibles of mankind: the vanity, the triumph,
the selfish gratification which such a dangerous knowledge would
create. She thought very well of him certainly, but the temptation to
conceit might be too strong, and she might have to rue the day if
she placed such confidence in him.
No, she would not see him till her feelings were in better order,
and more under her own control.
Such was her resolution as she sought the shelter of her dressing-
room; it did not occur to her, that he might consider he had a claim
on her attention, and a right to demand an interview with her; a
claim and a right which no man very much in love could be expected
to forego.
Having been quite unsuccessful in his search for her, he took a
very plain and straight-forward course to obtain what he wished,
going to Lady Gordon for assistance.
"Will you be my friend," said he, appealing to her with a look of
great concern, "my friend in a very important matter."
"Have I ever been otherwise, why should you ask?" replied she.
"Then procure me an interview with Emma—I cannot find her any
where, and I cannot exist longer in suspense. Dear Lady Gordon, do
pray have pity on me!"
"Yes!" replied she, affecting to look very grave, "I have pity on
you; and since you wish so much for an interview, I will try and
procure one, that is if Emma is not absolutely bent on refusing to
hear you. But are you prepared—can you stand the shock which
awaits you?"
"Good Heavens! what do you mean, Lady Gordon?" cried he,
catching her hand in his with an accent of alarm.
"Why, what do you expect?" said she, withdrawing her hand, "but
that she will refuse you; what else can you anticipate?"
"Refuse me, why—do not torment me—I am not afraid—" he
added, trying to smile.
"Upon my word, a very modest speech!" exclaimed she, "so you
feel no alarm—tranquil self-confidence possesses your soul. Emma
will be intensely gratified!"
"Dear Lady Gordon—" said he, pleadingly; but she would not
listen.
"So I am to call Miss Watson down to you, persuading her to come
with an assurance, that you feel so confident of what her answer will
be that you entertain no anxiety, no alarm. Is that what I am to
say?"
"Say anything you please, Lady Gordon," exclaimed he, in
desperation, "only procure me the sight of Miss Watson, and the
opportunity to speak to her."
"Very well, go to the library, and I will bring her there."
He anxiously hastened to the rendezvous she appointed; she
crossed the gallery to her friend's dressing-room.
On obtaining admission, she found Emma had been lying on the
sofa in a darkened room; she sat down by her, and affectionately
kissing her forehead and cheek, she said,
"I am come to congratulate you, my dear Miss Watson, that our
imaginary tragedy has proved an entire fable—Mr. Howard is quite
well, and all the loss on the occasion is that of a very pleasant
dance, which I had intended should be very much enjoyed."
"It seems so strange and incomprehensible," observed Emma,
putting back the ringlets from her forehead, "I could hardly believe
my eyes, or credit my senses, and as to speaking, that was out of
the question. I hope you did not think me very rude if you noticed
me, but the only thing I could do, was to run away."
"But now you have recovered your self-possession, and the use of
your speech, I hope you do not mean to seclude yourself here all
day; pray come and join us all. You had better."
"Perhaps I had," said Emma, "I will come with you in a moment;
just let me smooth my hair first."
"It is very nice I assure you, but I will wait as long as you please."
Miss Carr and Sir William were in the sitting-room; but Lady
Gordon did not stop there; to the great relief of Emma, who dreaded
the remarks of the young lady, they walked into the conservatory,
through it, and entered from the other end the library window.
Lord Osborne and Mr. Howard were there together, but the former
instantly took flight at their approach. Lady Gordon still keeping
Emma's hand under her own arm, led her up to Mr. Howard, and
said,
"I have brought my friend to congratulate the dead-alive, Mr.
Howard; she was wishing to say civil speeches to you like the rest of
us, but as I have done my duty in that way, and a twice told tale is
tedious, I shall leave you, to go after my brother."
As Emma had held out her hand to the gentleman, she could not
follow Lady Gordon in her flight, though looking exceedingly inclined
to do so; for he held her with a gentle pressure, and would not let
her go. His eyes were so earnestly bent upon hers, that she dared
not look up after the one glance she had given him; and she stood,
her slender fingers trembling in his grasp, longing to speak, but
wanting courage to break the silence.
"I am glad Miss Watson is not to be the only one from whom I
hear no word of welcome," said he gently. "If you knew how very
grateful I should feel for one sentence of kindness—even one look
which evinced interest, could you refuse me?"
"I assure you, Mr. Howard," said she, determined no longer to
stand silently blushing like a criminal before him; "I assure you it
was not want of interest, or kindly feeling towards you, which kept
me silent."
"Thank you—you were glad to see me again?"
"Indeed I was."
"And you guess—you must know and feel why I hurried home?"
"No, indeed," but the words were accompanied by so very deep a
blush, that they looked exceedingly like a falsehood.
"There was a letter, which I wrote, but to which I received no
answer, which hurried my movements—do you now know what I
mean?"
"I believe I do," she uttered in desperation finding he seemed
determined she should answer him.
"And though you would not write, you will condescend now to
answer that letter by word of mouth," taking her hand in both of his;
"I am sure you are too generous wilfully to torment me—and if you
had known how much pain your silence gave me, you would not
have allowed it to last so long."
"Mr. Howard," said Emma, looking up, but making no attempt to
withdraw her hand; "I only received that letter yesterday morning;
and as I then thought you were dead—you cannot imagine the pain
which the receipt of it occasioned me."
She spoke hurriedly, without considering the full value of her
words; but he saw the implied meaning—where was the man ever
blind to such a compliment. The speech he made on the occasion,
was a great deal too rapturous and lover-like to bear transcribing,
indeed, when lovers' speeches really come from the heart, they
would seldom be sufficiently intelligible to interest general readers.
There is so much understood by the pressure of the hands—so much
explained by the language of the eyes—and so much made up by
other signs well-known to the initiated, but unnecessary to detail to
those who have never gone through such an ordeal, that in most
cases it seems probable an accurate relation in words would be the
most tiresome, the most incomprehensible, the most ridiculous thing
in the world to those not taking a principal part in it.
Where the heart takes but a small share in the proceedings,
indeed, fine speeches may be made, but where the affections are
engaged, the meaning can be perfectly understood without them.
The result of his speech, and Emma's answer, was much more
favorable to his happiness, than the reply which she had made the
previous day to a similar question from Lord Osborne. She
acknowledged that she loved him, and that the dread of being poor,
or the desire of being great, would not prevent her promising to
become his wife.
When the first effervescence of his joy had subsided, and he was
able to speak in a calm and reasonable manner, and consider what
was best to be done, he urged her to come out with him into the
park, as the first step to securing her company perfectly undisturbed
—for, in the library, they were constantly exposed to be interrupted.
Here she tried to obtain from him some rational account as to why
he had tantalised her so long by deferring an explanation—which,
for any thing she could see to the contrary, might just as well, or
better, have been made long before. Since he professed he had
loved her even before she went to Croydon, why did he take no
steps to tell her so; or why, since he ended in writing, did he not
write to her there? Was it necessary to go as far as North Wales to
find courage for such an epistle.
He told her it was doubt and want of courage kept him silent—
then he contradicted himself and said it was really jealousy of Lord
Osborne. He had believed the young baron loved her.
So he might, perhaps, was Emma's reply—but what had that to do
with it; to make the admiration dangerous, it was necessary that she
should return his affection, "and surely, you never suspected me of
that?" said she.
"How could I tell? Might you not naturally be dazzled with the idea
of a coronet; why, should I have interfered with your advantage or
advancement?"
"As if it would be to my advantage to marry a man like Lord
Osborne," replied Emma. "I do not wish to say anything derogatory
to your friends, or to Lady Gordon's brother, but indeed I think you
might have given me credit for rather a different taste at least. I
have no wish either to flatter you too much; but I fancy, whether
better or worse, our tastes are more consonant than mine and Lord
Osborne's."
"But, my dearest Emma, did he not love you?"
"What right have you to ask me any such questions, Mr. Howard?
so long as I assure you, I did not love him, that ought to be
sufficient for you—let his feelings remain a secret."
"There should be no secrets between us, Emma."
"Very well—but there shall be between Lord Osborne and me."
"For shame, Emma, I shall certainly forbid anything of the kind."
"Set me the example of sincerity and openness then, tell me to
how many ladies you have made love—how many hopeless and
inextinguishable flames you have nourished, and how many hearts
you have found obdurate to your finest speeches."
Mr. Howard protested he had never loved any other woman, never
sought any other hand than hers, and never made fine speeches to
any one. With all his eloquence and ability he was not able to extract
from her the fact, that she had refused Lord Osborne. She had two
motives for her silence; a feeling of delicacy towards her rejected
suitor, and a decided determination not to flatter Howard's vanity by
such a mark of her preference. She thought it quite enough for him
to know himself accepted without learning, at least at present, how
many she had refused for his sake.
CHAPTER XV
Lady Gordon, and her husband, learnt with sincere pleasure, that
a happy understanding had been established between Emma and
her lover; they both hinted that the disappointment to Lord Osborne
would not be lasting, and that the attachment would on the whole
have done him good. He had improved so much during its progress,
had become so sociable and civilised by his affection, that he
seemed a different person; and whilst rejoicing at the change, they
trusted he would not relapse under the effects of his want of
success, but would prove himself worthy of his place in society, and
his position in the world.
As to the young man himself, he felt his disappointment most
acutely, but it did not make him more selfish than he had been. On
the contrary it seemed to give rise to a magnanimity of sentiment
which could hardly have been expected from him.
Two days after the engagement it was found he went down to see
Howard at the vicarage immediately after the post had come in.
That morning he had received an announcement of the death of the
old rector before mentioned. He now hastened to offer the living to
Howard, delighted to have it in his power thus to improve his
circumstances.
"Howard," said he, "I have learnt by this letter that the living of
Carsdean is vacant. I am glad of it—as I am sure it will make you
much more comfortable. Will you accept it?"
"My dear lord," said he, with much emotion, "you are too kind to
me: I am ashamed to accept such a benefit, when I have robbed
you of what you so much desired."
"Do not speak of that," said the other, "she took her choice, and
no doubt chose wisely; I always felt you were beloved, Howard,
even whilst I was fool enough to flatter myself with success: but I
am not angry either with her or you, and since I cannot make her
happy myself, I am glad I can help you to do so. This living was
always meant for you—but coming as it does just now, it gives me
very great pleasure."
"I knew you were generous," replied Howard, "and I can feel how
much satisfaction the power of obliging must confer."
"Make her happy, Howard, and when I can, I will come and see
you, but it is best at first that we should be apart. You accept my
wedding gift!"
"A noble one, like the heart which dictates it, and a welcome one
indeed since it removes the only obstacle to my marriage," replied
Howard.
"Howard, you are a lucky man; I would have given half my income
to have had the power of persuading her to accept the other half.
You know, I dare say, that she refused me?"
"No, indeed!"
"Did not Emma tell you? She did refuse me, and I loved her the
better for it, for it was entirely for your sake; but as I thought you
were dead then I did not take it so much to heart, because I trusted
to time and perseverance when my rival was removed."
"And when I came back and destroyed your dream, how you must
have hated me! I wonder you could shake hands as you did, and say
you were glad to see me."
"Howard," said Lord Osborne with much agitation, "if I thought
you were serious in what you say, I would never speak to you again;
I know you only say it to torment me, but is that generous when you
are the winning party?"
"I beg your pardon," said Howard holding out his hand; and no
more was said on the subject.
"What a pity it is," said Emma Watson to Howard when he was
joyfully detailing to her his happy prospects, and Lord Osborne's
generosity, "what a pity it is that Lord Osborne's manners are so
inferior to his mind. With so much good feeling and generosity of
sentiment, it is unfortunate that he should have so little engaging in
his appearance and address."
"I do not think so at all, Emma, for if his manners had been such
as you admire, and calculated to set off his good qualities, you
would certainly have been lost to me."
"What abominable conceit!" cried Emma; "you really take credit to
yourself, do you, for such very captivating manners yourself, since
you think that those alone are the passports to my good opinion."
"I did not mean to say that; I trust my other good qualities are so
remarkable that you have, in their favour, overlooked any little
deficiencies which might otherwise strike you in my manners."
"Modest, truly! What is the income of the living which his lordship
presents to you?"
"About a thousand a year, I believe, and a very pretty country and
pleasant neighbourhood. I have been there, and always thought I
should like it so very much."
"I am quite sorry to leave this pretty place though," said Emma
looking at the Vicarage near which they were wandering; "I am sure
the other cannot have so pleasant a garden, nor so pleasant a little
drawing-room. Those were happy days when we were snowed up
there."
They then went off into a long series of reminiscences and
explanations through which it would be useless, were it possible, to
follow them.
Emma spent one very happy week at the Castle after her
engagement; which was not the less agreeable to every one
concerned because both Lord Osborne and Miss Carr left it. He
quitted his house immediately after the conversation above
recorded; and she then decided that her visit had been long enough
to such dreadfully dull people as Rosa and her husband were
become: so she took leave of her dear friends and returned,
unsuccessful, home.
At the end of a week, Mr. Howard found it necessary to go too;
there was business connected with his new living which must be
attended to, and unwillingly he tore himself away.
Mrs. Willis still continued in Wales, for though Charles was better,
and indeed daily gaining strength, the physicians had so strongly
recommended sea air for the re-establishment of his health, that his
mother had decided on spending the summer on the sea-coast
there.
Howard's departure proved, however, only the prelude to Emma's
return to Croydon. Elizabeth's marriage was fast approaching, and
she pressed to see Emma again before that event. The idea of again
becoming an inmate of Robert's house was so very repulsive to
Emma that she demurred from that reason alone, and she was much
more inclined to accede to Miss Bridge's repeated invitations to
return to Burton. But this Elizabeth urged would be doing no good at
all; fourteen miles would as effectually preclude daily meetings as
forty, and would be only tantalizing instead of comfortable. The
affair was at length arranged through the intervention of Mr. Bridge,
who invited both his sister and her young friend to take up their
residence for a time in his Vicarage at Croydon. And so it was settled
at last, and after a hundred kind words and caresses from Lady
Gordon, and the most cordial good wishes from her husband, Emma
left the Castle, travelling, be it recorded, in one of Sir William's
carriages half the way, where she was to be met by Miss Bridge's
chariot, to convey her the latter half of the journey.
With no accident and no adventure she reached Croydon, and of
course received a far warmer welcome than when she had formerly
made the same journey.
Elizabeth was waiting to receive her—her face was seen through
the flowers in the drawing-room window, and she reached the
entrance door, and ran down the steps to open the carriage before
the fat, well-powdered footman had time to put on his livery coat.
She led her sister into the house, and in the passage pushed back
the bonnet and the dark curls from her cheeks, to see if she was as
pretty as ever. Then, before leading her into the drawing-room, she
paused again to make her guess who she would find there.
Emma suggested Mr. and Miss Bridge.
"You little goose," replied Elizabeth, "as if I should have thought it
worth while to make you guess that!"
Then throwing open the door she ushered her in, and in another
moment Emma was clasped in the arms of her dear brother Sam.
This was a very unexpected pleasure—she had hoped to see him
certainly, but never for a moment anticipated meeting him so soon.
It was the joint kindness of Miss Bridge and Elizabeth; the one well
remembering the affectionate terms in which Emma always spoke of
her brother had been suggesting the possibility of his coming, and
the other eager to carry out the plan had persuaded George Millar to
ask him to his house for the week preceding the wedding. He had
arrived that very afternoon, and after an introduction to his future
brother, had accompanied Elizabeth to meet Emma.
Emma had much to communicate to Sam; besides her own
prospects she had matters which must be interesting to him as
concerning himself. A farewell visit which she had paid to the
Edwards had brought another engagement to her knowledge. Mary
Edwards was soon to be married to Captain Hunter. She found them
tête-à-tête in the parlour when she entered, and appearances were
so very suspicious, that even without the direct information which
Mrs. Edwards subsequently whispered to her, she would have
concluded her brother's cause to be lost.
Mrs. Edwards appeared on the whole better reconciled to the
match than Emma, from her early recollections, would have
supposed. Perhaps she had discouraged Mary's partiality for the
Captain, from a doubt of his sincerity, which was now removed; or
perhaps finding herself in the minority, she had given up her
previous objections, because it was no use to persist in them;
whatever were her feelings, she had received Emma's
congratulations with a good grace, and Emma hoped there was no
ill-will implied in the message of compliments which she charged her
to deliver to their old acquaintance Mr. Sam Watson.
All this she had to communicate to Sam, who listened with
philosophy, and whistled sotto voce instead of an answer. Certainly
the part which piqued him most was Mrs. Edwards' message; for
some time indeed he had almost despaired of Mary's affection, but
he could not bear that the mother who had never been his friend,
should suppose he cared at all about it.
There seemed nothing wanting to complete the felicity of the
happy party assembled at the Rectory of Croydon. Perhaps indeed
Mr. Howard would not have been flattered had he supposed this the
case; but so it really was; Emma had parted from him so recently
that she hardly felt the want of his society yet, and the satisfaction
of knowing herself beloved was at present sufficient for her repose
of mind. The agitations and anxieties of suspense were over, and
were followed by a calmness and peace of mind which seemed all
that she could require. She had now as much to hear as to tell, for
Sam had been to Chichester, and seen Penelope and her husband,
had arranged the plan for his future establishment, and his
prospects were of a very bright character. Could he only have
commanded a couple of thousand pounds, besides what he
possessed, there would have been no difficulty at all in stepping into
a comfortable house and flourishing business. As it was, the
prospects which Penelope promised him should be realized in a short
time, were sufficient to raise his mind and ease his spirits.
CHAPTER XVI.
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