Pragmatic Version Control Using Git - Swicegood_ Travis.pdf

(3522 KB) Pobierz
712028564 UNPDF
712028564.013.png
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
712028564.014.png
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
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
712028564.015.png 712028564.001.png 712028564.002.png 712028564.003.png 712028564.004.png 712028564.005.png 712028564.006.png 712028564.007.png 712028564.008.png 712028564.009.png 712028564.010.png 712028564.011.png 712028564.012.png
Contents
9
10
Who’s This Book For? . . . . . . . . . . . . . . . . . . . . . . .
11
What’s in This Book? . . . . . . . . . . . . . . . . . . . . . . . .
11
Typographic Conventions . . . . . . . . . . . . . . . . . . . . .
13
Online Resources . . . . . . . . . . . . . . . . . . . . . . . . . .
13
14
15
1.1
The Repository . . . . . . . . . . . . . . . . . . . . . . . .
16
1.2
What Should You Store? . . . . . . . . . . . . . . . . . .
17
1.3
Working Trees . . . . . . . . . . . . . . . . . . . . . . . .
18
1.4
18
1.5
19
1.6
Tracking Milestones with Tags . . . . . . . . . . . . . .
20
1.7
21
1.8
Merging . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
1.9
Locking Options . . . . . . . . . . . . . . . . . . . . . . .
24
1.10 Next Steps . . . . . . . . . . . . . . . . . . . . . . . . . .
25
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
 
Zgłoś jeśli naruszono regulamin