Pragmatic Version Control Using Git - Swicegood_ Travis.pdf
(
3522 KB
)
Pobierz
712028564 UNPDF
What readers are saying about Pragmatic Version Control
Using Git
Pragmatic Version Control Using Git is an excellent guide to getting you
started with Git. It will teach you not only how to get yourself started
but also how to cooperate with others and how to keep your history
clean.
Pieter de Bie
Author, GitX
If you are thinking of using Git, I highly recommend this book. If you
are not using a version control system (and code or create content on
a computer), put the book down, slap yourself, pick the book back up,
and buy it.
Jacob Taylor
Entrepreneur and Cofounder, SugarCRM Inc.
Not only has this book convinced me that Git has something to offer
over CVS and Subversion, but it has also showed me how I can benefit
from using it myself even if I’m using it alone in a CVS/Subversion
environment. I expect to be a full-time Git user soon after reading
this, which is hard to believe considering this is the first distributed
version control system I’ve ever looked at.
Chuck Burgess
2008 PEAR Group Member
Travis has done an excellent job taking a tricky subject and making it
accessible, useful, and relevant. You’ll find distributed version control
and Git much less mysterious after reading this book.
Mike Mason
Author, Pragmatic Version Control Using Subversion
Pragmatic Version Control
Using Git
Travis Swicegood
The Pragmatic Bookshelf
Raleigh, North Carolina Dallas, Texas
Many of the designations used by manufacturers and sellers to distinguish their prod-
ucts are claimed as trademarks. Where those designations appear in this book, and The
Pragmatic Programmers, LLC was aware of a trademark claim, the designations have
been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The
Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g
device are trademarks of The Pragmatic Programmers, LLC.
Every precaution was taken in the preparation of this book. However, the publisher
assumes no responsibility for errors or omissions, or for damages that may result from
the use of information (including program listings) contained herein.
Our Pragmatic courses, workshops, and other products can help you and your team
create better software and have more fun. For more information, as well as the latest
Pragmatic titles, please visit us at
http://www.pragprog.com
Copyright
©
2008 Travis Swicegood.
All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmit-
ted, in any form, or by any means, electronic, mechanical, photocopying, recording, or
otherwise, without the prior consent of the publisher.
Printed in the United States of America.
ISBN-10: 1-934356-15-8
ISBN-13: 978-1-934356-15-9
Contents
Acknowledgments
9
Preface
10
Who’s This Book For?
. . . . . . . . . . . . . . . . . . . . . . .
11
What’s in This Book?
. . . . . . . . . . . . . . . . . . . . . . . .
11
Typographic Conventions
. . . . . . . . . . . . . . . . . . . . .
13
Online Resources
. . . . . . . . . . . . . . . . . . . . . . . . . .
13
I Welcome to the Distributed World
14
1 Version Control the Git Way
15
1.1
The Repository
. . . . . . . . . . . . . . . . . . . . . . . .
16
1.2
What Should You Store?
. . . . . . . . . . . . . . . . . .
17
1.3
Working Trees
. . . . . . . . . . . . . . . . . . . . . . . .
18
1.4
Manipulating Files and Staying in Sync
. . . . . . . . .
18
1.5
Tracking Projects, Directories, and Files
. . . . . . . . .
19
1.6
Tracking Milestones with Tags
. . . . . . . . . . . . . .
20
1.7
Creating Alternate Histories with Branches
. . . . . . .
21
1.8
Merging
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
1.9
Locking Options
. . . . . . . . . . . . . . . . . . . . . . .
24
1.10 Next Steps
. . . . . . . . . . . . . . . . . . . . . . . . . .
25
2 Setting Up Git
26
2.1
Installing Git
. . . . . . . . . . . . . . . . . . . . . . . . .
26
2.2
Configuring Git
. . . . . . . . . . . . . . . . . . . . . . .
31
2.3
Using Git’s GUI
. . . . . . . . . . . . . . . . . . . . . . .
33
2.4
Accessing Git’s Built-in Help
. . . . . . . . . . . . . . . .
34
Plik z chomika:
superktos86
Inne pliki z tego folderu:
Pragmatic Version Control Using Git - Swicegood_ Travis.pdf
(3522 KB)
cover.jpg
(52 KB)
metadata.opf
(3 KB)
Inne foldery tego chomika:
Pragmatic Guide to Git (3114)
Zgłoś jeśli
naruszono regulamin