Buying Options
Version Control with Git
Print $34.99
Add to Cart
Print+Ebook $38.49
Add to Cart
Ebook $27.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £26.99
Add to Cart
What is this?
Description
Version Control with Git takes you step-by-step through ways to track, merge, and manage software projects, using this highly flexible open-source version control system. Git permits practically an infinite variety of methods for development and collaboration, but its flexibility also means that some users don't understand how to use it to best advantage. This book offers tutorials on ways to use it, as well as friendly yet rigorous advice to help you navigate Git's many functions.
Full Description
Table of Contents
  1. Chapter 1 Introduction

    1. Background

    2. The Birth of Git

    3. Precedents

    4. Time Line

    5. What’s in a Name?

  2. Chapter 2 Installing Git

    1. Using Linux Binary Distributions

    2. Obtaining a Source Release

    3. Building and Installing

    4. Installing Git on Windows

  3. Chapter 3 Getting Started

    1. The Git Command Line

    2. Quick Introduction to Using Git

    3. Configuration Files

    4. Inquiry

  4. Chapter 4 Basic Git Concepts

    1. Basic Concepts

    2. Object Store Pictures

    3. Git Concepts at Work

  5. Chapter 5 File Management and the Index

    1. It’s All About the Index

    2. File Classifications in Git

    3. Using git add

    4. Some Notes on Using git commit

    5. Using git rm

    6. Using git mv

    7. A Note on Tracking Renames

    8. The .gitignore File

    9. A Detailed View of Git’s Object Model and Files

  6. Chapter 6 Commits

    1. Atomic Changesets

    2. Identifying Commits

    3. Commit History

    4. Finding Commits

  7. Chapter 7 Branches

    1. Reasons for Using Branches

    2. Branch Names

    3. Using Branches

    4. Creating Branches

    5. Listing Branch Names

    6. Viewing Branches

    7. Checking Out Branches

    8. Deleting Branches

  8. Chapter 8 Diffs

    1. Forms of the git diff Command

    2. Simple git diff Example

    3. git diff and Commit Ranges

    4. git diff with Path Limiting

    5. Comparing How Subversion and Git Derive diffs

  9. Chapter 9 Merges

    1. Merge Examples

    2. Working with Merge Conflicts

    3. Merge Strategies

    4. How Git Thinks About Merges

  10. Chapter 10 Altering Commits

    1. Caution About Altering History

    2. Using git reset

    3. Using git cherry-pick

    4. Using git revert

    5. reset, revert, and checkout

    6. Changing the Top Commit

    7. Rebasing Commits

  11. Chapter 11 Remote Repositories

    1. Repository Concepts

    2. Referencing Other Repositories

    3. Example Using Remote Repositories

    4. Remote Repository Operations in Pictures

    5. Adding and Deleting Remote Branches

    6. Remote Configuration

    7. Bare Repositories and git push

    8. Publishing Repositories

  12. Chapter 12 Repository Management

    1. Repository Structure

    2. Living with Distributed Development

    3. Knowing Your Place

    4. Working with Multiple Repositories

  13. Chapter 13 Patches

    1. Why Use Patches?

    2. Generating Patches

    3. Mailing Patches

    4. Applying Patches

    5. Bad Patches

    6. Patching Versus Merging

  14. Chapter 14 Hooks

    1. Installing Hooks

    2. Available Hooks

  15. Chapter 15 Combining Projects

    1. The Old Solution: Partial Checkouts

    2. The Obvious Solution: Import the Code into Your Project

    3. The Automated Solution: Checking Out Subprojects Using Custom Scripts

    4. The Native Solution: gitlinks and git submodule

  16. Chapter 16 Using Git with Subversion Repositories

    1. Example: A Shallow Clone of a Single Branch

    2. Pushing, Pulling, Branching, and Merging with git svn

    3. Miscellaneous Notes on Working with Subversion

  1. Colophon

View Full Table of Contents
Product Details
Title:
Version Control with Git
By:
Jon Loeliger
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
May 2009
Ebook Release:
May 2009
Pages:
336
Print ISBN:
978-0-596-52012-0
| ISBN 10:
0-596-52012-3
Ebook ISBN:
978-0-596-80243-1
| ISBN 10:
0-596-80243-9
Customer Reviews
About the Author
  1. Jon Loeliger

    Jon Loeliger is a Software Engineer at Freescale Semiconductor, Inc., where he works on Open Source projects such as Linux, U-Boot, and Git. He has given tutorial presentations on Git at the Ottawa Linux Symposium, Linux World Conference, and MontaVista Vision Conference, and has written several papers about Git for Linux Magazine.

    View Jon Loeliger's full profile page.

Colophon
The animal on the cover of Version Control with Git is a long-eared bat. It is a fairly large bat that is common and widespread throughout Great Britain and Ireland. It can also be found in Japan. Often seen in colonies of 50 to a 100 or more, it lives in open woodlands, as well as parks and gardens and in spaces under houses and church roofs. It also hibernates in caves, where it is more solitary in habit.The long-eared bat is a medium-size bat with a broad wingspan of about 25 cm. Its ears are very long and have a very distinctive fold-their inner edges meet each other on the top of the head, and their outer edges end just behind the angle of the mouth. When the bat sleeps, it folds its ears under its wings. During flight, the ears are pointing forward. Its fur is long, fluffy, and silky, extending a short way onto the surface of its wings. It is dusky brown in color on top and light or dirty brown in color below. Juveniles are pale grey, lacking the brown tinges of the adults. Their diet consists of flies, moths, and beetles. It glides among foliage, frequently hovering to scour for insects. When traveling to another tree, its flight is swift, strong, and close to the ground.Long-eared bats breed in autumn and spring. Pregnant females form nursery colonies of 100 or more in early summer, and the single young or twins are born in June and July.Bats are the only true flying mammals. Contrary to popular misconception, they are not blind-many can actually see very well. All British bats use echolocation to orient themselves at night; they emit bursts of sound that are of such high frequencies they are beyond the human range of hearing and are therefore called "ultrasound." The bats then listen to and interpret the echoes bounced back from objects around them (including prey), which allows them to build a "sound-picture" of their surroundings.Like all bats, this species is vulnerable to a number of threats, including the loss of roost sites, as hollow trees are often cut down if thought unsafe. Pesticide use has devastating effects, causing severe declines in insect abundance and contaminating food with potentially fatal toxins. Insecticides applied to timbers inside buildings where roosts occur are a particular danger-the initial treatment can wipe out whole colonies (spraying timber where bats are roosting is now illegal), but the effects of these chemicals can be lethal to bats for up to 20 years. In Britain, under the Wildlife and Countryside Act, it is illegal to intentionally kill, injure, take, or sell a bat; to possess a live bat or part of a bat; and to intentionally, recklessly damage, obstruct, or destroy access to bat roosts. Under the conservation regulations, it is an offense to damage or destroy breeding sites or resting places. Offenders can be charged up to 5,000 pounds per bat affected and be sentenced to six months imprisonment.
  • Book cover of Version Control with Git