git_pocket_guide.pdf

(4966 KB) Pobierz
Git Pocket Guide
Richard E. Silverman
Git Pocket Guide
by Richard E. Silverman
Copyright © 2013 Richard E. Silverman. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebasto‐
pol, 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.safaribookson
line.com).
For more information, contact our corporate/institutional sales de‐
partment: 800-998-9938 or
corporate@oreilly.com.
Editors:
Mike Loukides and Meghan Blanchette
Production Editor:
Melanie Yarbrough
Copyeditor:
Kiel Van Horn
Proofreader:
Linley Dolby
Indexer:
Judith McConville
Cover Designer:
Randy Comer
Interior Designer:
David Futato
Illustrator:
Rebecca Demarest
June 2013:
First Edition
Revision History for the First Edition:
2013-06-24: First release
2013-07-10: Second release
2013-08-30: Third release
See
http://oreilly.com/catalog/errata.csp?isbn=9781449325862
for release de‐
tails.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are
registered trademarks of O’Reilly Media, Inc.
Git Pocket Guide,
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 author assume no responsibility for errors or omissions, or for
damages resulting from the use of the information contained herein.
ISBN: 978-1-449-32586-2
[LSI]
Table of Contents
Preface
Chapter 1: Understanding Git
Overview
The Object Store
Object IDs and SHA-1
Where Objects Live
The Commit Graph
Refs
Branches
The Index
Merging
Push and Pull
Chapter 2: Getting Started
Basic Configuration
Creating a New, Empty Repository
Importing an Existing Project
Ignoring Files
Chapter 3: Making Commits
ix
1
2
6
11
15
16
17
19
22
24
26
33
33
39
41
42
47
iii
Zgłoś jeśli naruszono regulamin