Version Control with Git, 2nd Edition
Powerful tools and techniques for collaborative software development
Publisher: O'Reilly Media
Released: August 2012
Pages: 456

Get up to speed on Git for tracking, branching, merging, and managing code revisions. Through a series of step-by-step tutorials, this practical guide takes you quickly from Git fundamentals to advanced techniques, and provides friendly yet rigorous advice for navigating the many functions of this open source version control system.

This thoroughly revised edition also includes tips for manipulating trees, extended coverage of the reflog and stash, and a complete introduction to the GitHub repository. Git lets you manage code development in a virtually endless variety of ways, once you understand how to harness the system’s flexibility. This book shows you how.

  • Learn how to use Git for several real-world development scenarios
  • Gain insight into Git’s common-use cases, initial tasks, and basic functions
  • Use the system for both centralized and distributed version control
  • Learn how to manage merges, conflicts, patches, and diffs
  • Apply advanced techniques such as rebasing, hooks, and ways to handle submodules
  • Interact with Subversion (SVN) repositories—including SVN to Git conversions
  • Navigate, use, and contribute to open source projects though GitHub
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyVersion Control with Git, 2nd Edition
 
4.8

(based on 13 reviews)

Ratings Distribution

  • 5 Stars

     

    (11)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (11)
  • Helpful examples (10)
  • Accurate (9)
  • Easy to understand (8)
  • Concise (5)

Cons

    Best Uses

    • Intermediate (12)
    • Novice (11)
    • Student (6)
    • Expert (4)
      • Reviewer Profile:
      • Developer (11)

    Reviewed by 13 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    4.0

    Get Git

    By RCC

    from Toronto, ON

    About Me Designer, Developer, Educator

    Verified Buyer

    Pros

    • Accurate
    • Clear Writing
    • Deep
    • Realistic Examples
    • Well-written

    Cons

    • Github Chapter Outdated
    • Not A Beginner Book

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Version Control with Git, 2nd Edition:

    If you just want to learn how to use Git, or some super-effecient workflows, this is NOT the book for you. This book digs deep into the guts and history of Git for a few chapters before even touching the command line and focuses on the Why rather than the What.

    I definitely got stuck a few times with the examples when the book said "Then do x" and I had to google to figure out exactly how to do x, but if you have moderate knowledge of the command line (and vim...) you will probably not run into this problem. The examples are very clear and given how Git works if you type in the right things you will get the exact same results as the book.

    I would highly recommend this book for anybody who wants to know how Git works for real and not just type in some stuff you learned from an online tutorial. Even if you already consider yourself functional at Git you might want to give this book a skim because the concepts behind it are really fascinating.

     
    3.0

    OK for newbies, but short as a reference

    By sqaview

    from Santa Clara, CA

    About Me Developer

    Verified Reviewer

    Pros

      Cons

      • Not comprehensive enough

      Best Uses

      • Novice
      • Student

      Comments about oreilly Version Control with Git, 2nd Edition:

      I'm a git newbie and have been thrown into the fire quickly. I'm already finding this "2nd edition" dated, as there's no real discussion of tagging, git describe, building Python packages that are managed with git (e.g., how to pragmatically generate unique package version numbers), what the definition of "committish" or "commit-ish" (legacy) is, etc. Since I'm relying on this book as a reference, I wish it had more coverage on these sort of topics, consequently I can only give it three stars.

       
      5.0

      Must read!

      By Konrad Garus

      from Krakow, PL

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate
        • Novice

        Comments about oreilly Version Control with Git, 2nd Edition:

        There are reasons why Git has become so popular, but the first encounter with it can a bit overwhelming. Even if you kind of learn how to do basic things, it's not uncommon to feel like we're only scratching the surface. The typical reaction when something slightly less typical is needed often sounds like: "There be dragons!"

        Here comes "Version Control with Git" by Jon Loeliger and Matthew McCullough.

        It starts with a good explanation of the basic concepts of Git. It explains all the building blocks of Git and internal organization of repository. It slowly introduces the basic commands and every time explains very well how a change is reflected in the repository or what a command is really operating on.

        The distribution, collaboration, merging etc. are introduced fairly late, but somehow by that time the reader will have understood the core so much that everything just falls into place and is immediately understandable. Finally, it also shows some more arcane features and commands that probably are rarely used, but knowing that they are there and having the book handy for when the time comes doesn't hurt.

        Last but not the least, it explains common usage patterns as well as things that can be done outside the typical path, with appropriate warnings about possible negative impact.

        This book is a must-read for all Git users. It's usable on all levels, from absolute newbie to someone who feels fairly proficient with Git. I've been using Git daily for quite a while, and it really helped me understand what is going on. Everything is very accessible, with plenty of examples as small and practical as possible, as well as some images.

         
        5.0

        Finally getting Git

        By Wendell Walker

        from Berkeley, CA

        About Me Developer

        Verified Buyer

        Pros

        • Accurate
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Intermediate
          • Novice
          • Student

          Comments about oreilly Version Control with Git, 2nd Edition:

          I've been using Git for several years, but in the most limited, hazard-prone way due to lack of understanding. Everything I'd read seemed to assume one or more ideas that I didn't share and I'd soon get lost in the reeds. Version Control with Git starts from first principles and works outward from there. The style is exemplary, and the examples are a rarity, in that they work for learning whether you follow along or not. I finally feel ready to use Git as more than a glorified backup system.

          (1 of 1 customers found this review helpful)

           
          5.0

          Deep into the inner workings of Git

          By Michael

          from Canada

          About Me Developer, Team Lead

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Deep
          • Easy to understand
          • Helpful examples
          • Insightful
          • Well-written

          Cons

            Best Uses

            • Intermediate
            • Novice
            • Student

            Comments about oreilly Version Control with Git, 2nd Edition:

            A simply fantastic, elegantly and concisely written explanation of everything you've ever wanted to know about Git, especially the concepts you didn't even realize you had misunderstood before reading this book.

            From the conceptual underpinnings that make up Git's object store to cherry-picking, this books covers it all in clear language with great examples.

            The author is also gifted with a reader's insight: at every single point I found myself asking "But what about situation X?" there would be a tip box addressing exactly that, clearly.

            If you work with Git, read the entire book. Internet-based resources can be useful, but this is exhaustive and pleasant to read.

             
            5.0

            Great for pro and novices

            By jonmoo

            from Central City, KY

            About Me Sys Admin

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Easy to understand
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Intermediate
              • Novice

              Comments about oreilly Version Control with Git, 2nd Edition:

              The first several chapters of this book introduces you to Git in a few ways. The authors discuss the installation and basic uses of Git as well as go over some of the history behind Git. I gained most of my knowledge of Git through hands-on experience and this discussion of its history proved using in those cases where understanding why something happens and not just how can make a huge difference.

              After the introduction, the authors expand on some of the basic concepts and give a more in depth explanation of the basics of Git and how you would use Git in your everyday life. I found following along with the examples presented in the book proved very useful in strengthening my understanding of the Git way of doing things.

              As the book progresses the authors dive into more and more complex topics and still manage to explain everything in such a way that I was able to follow along with no problems. The book is structured in such a way that it is very easy to jump around and explore without missing out on anything.

              I would highly recommend Version Control with Git to anyone new to version control systems as well as those already experienced looking for some new tricks. Even if you know what you're doing, the authors make the book enjoyable and fun to read.

              (1 of 1 customers found this review helpful)

               
              5.0

              Expertly combines tutorial and reference

              By Craig Maloney

              from Michigan

              About Me Developer

              Verified Reviewer

              Pros

              • Expands On First Edition
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about oreilly Version Control with Git, 2nd Edition:

                It's hard to remember a time before distributed version control systems became the norm. When Git, bzr, and hg started being used there was a culture shock. Where does the central repository live? Who can commit, and to where? How to I merge several developers' work together into one repo? Over time Git proved itself to be the clear front-runner, and most Open Source projects either use Git, or recognize the reasons for why they're not using Git. But for those not yet versed in the ins-and-outs of Git, learning how Git works and how it differs from version control systems like Subversion and CVS can be challenging. Version Control with Git, Second Edition comfortably brings readers from Git newbies into Git masters over the course of the book.

                The first edition of Version Control with Git was an excellent book for learning the more advanced topics of Git, but the reference nature of the first edition was less useful for those just learning Git. The second edition builds on the foundations of the first book and extends it to be more accessible to beginners. Each concept starts off with an overview of the basic, and then gradually sprinkles on the more advanced topics until the reader can grasp the concept. It has quickly become my go-to book for any of my Git questions, and has neatly compressed my recommendations for beginner books into one handy reference book.

                Version Control with Git, Second Edition splits itself into two sections. The first part covers all of the operations pertaining to a single local repository. The latter parts delve into the more powerful parts of Git, and how to use it with multiple repositories. There is also a chapter handling repositories using Github. The book is very clear, easy to read, and provides ample workable examples throughout the chapters. Unlike some books that try to keep a project throughout the book, Version Control with Github begins each chapter with fresh examples, which allows each chapter to be worked independently of the rest of the book.

                I found Version Control with Git, Second Edition a welcome refresh of a book that I already regarded highly. When folks would ask me which book to use to learn Git, I'd recommend they read one of the other introductory books, then refer to this book as needed. With the second edition, I can now recommend this book to anyone looking for how to get started and master Git.

                (Note: I received this book from O'Reilly to review, but the first edition was awesome enough that I would have purchased the second edition sight-unseen).

                (2 of 2 customers found this review helpful)

                 
                5.0

                Exactly the Thing!

                By Steve

                from Boulder, CO

                About Me Developer

                Verified Reviewer

                Pros

                • Accurate
                • Concise
                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                  Best Uses

                  • Intermediate
                  • Novice

                  Comments about oreilly Version Control with Git, 2nd Edition:

                  Covers the essentials quickly then goes into as much detail as you will ever need (well, as much as I'll ever need). Read it through quickly to understand what you need to know right away and what else you can do if the need arises, then keep this nearby as a reference.

                  Once you gain an understanding of command-line operations you may feel constrained by a GUI. But if you move, or go back to a GUI you'll at least know what's going on under the covers.

                  Every technical publication should aspire to this level of concision, clarity, and depth.

                  (1 of 1 customers found this review helpful)

                   
                  5.0

                  Great for those getting started

                  By metric

                  from washington state

                  About Me Developer

                  Pros

                  • Concise
                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Intermediate
                    • Novice

                    Comments about oreilly Version Control with Git, 2nd Edition:

                    Our company is in the process of replacing our current source code repository with git. I'd heard a lot about it, but only played with it in a single user environment. I decided to pick this up to gain a better understanding since I would start using it soon.

                    This book does a great job of breaking down git and its associated commands. There were a lot of questions I had coming into this due to a limited interaction with it and they were all answered (what's the difference between pull and fetch, etc).

                    I would recommend this book to anyone interested in git or moving to it from something else. It totally changed my outlook on the platform and I look forward to moving from what I'm currently using to git.

                    (1 of 2 customers found this review helpful)

                     
                    5.0

                    Solid introduction, well written

                    By mko

                    from Poland

                    About Me Developer

                    Verified Reviewer

                    Pros

                    • Accurate
                    • Concise
                    • Easy to understand
                    • Helpful examples
                    • Well-written

                    Cons

                      Best Uses

                      • Intermediate
                      • Novice

                      Comments about oreilly Version Control with Git, 2nd Edition:

                      Have you heard about Git but not sure what is it? This book will give you nearly complete explanation of what Git is all about. In my personal opinion, one of the best introductions to Git. Ever. The book covers most common topics and does it right. In case you are complete beginner, it provides initial Git setup section. So, be afraid not. If you prefer to use Windows over Linux or OS X, you will be told how to setup things as well. What's most important is that all the concepts are well illustrated and well explained with pictures and examples. However, sometimes you will have to focus on what you read to get the complete knowledge of the topic. It's not just that you flip the pages and that's it. When it comes to scientific jargon I'd say it's on the moderate level. For readers, having knowledge of the terms related to source management systems would be a plus here, but is not necessary.

                      Just one warning, in case you are purely Windows user and you have got used to work with GUI only. You will have to go back to CLI while reading this book. I don't say this is wrong, not at all, but it might be a challenge for some Windows users.

                      Displaying reviews 1-10

                      Back to top

                      Previous | Next »

                       
                      Buy 2 Get 1 Free Free Shipping Guarantee
                      Buying Options
                      Immediate Access - Go Digital what's this?
                      Ebook: $27.99
                      Formats:  DAISY, ePub, Mobi, PDF
                      Print & Ebook: $38.49
                      Print: $34.99

                      Available in Multiple Languages