Skip to main content

2009 | Buch

Pro Git

insite
SUCHEN

Über dieses Buch

Git is the version control system developed by Linus Torvalds for Linux kernel development. It took the open source world by storm since its inception in 2005, and is used by small development shops and giants like Google, Red Hat, and IBM, and of course many open source projects.

A book by Git experts to turn you into a Git expert Introduces the world of distributed version control Shows how to build a Git development workflow

Inhaltsverzeichnis

Frontmatter
Chapter 1. Getting Started
Abstract
This chapter is about getting started with Git. We’ll begin at the beginning by presenting some background about n version-control tools, then move on to how you get Git running on your system, and finally explain how to set it up so you can start working with Git. At the end of this chapter, you should understand why Git exists and why you should use it, and you should be ready to do so.
Chapter 2. Git Basics
Abstract
If you can read only one chapter to get going with Git, this is it. This chapter covers every basic command you need to do the vast majority of the things you’ll eventually spend your time doing with Git. By the end of the chapter, you should be able to configure and initialize a repository, begin and stop tracking files, and stage and commit changes. I’ll also show you how to set up Git to ignore certain files and file patterns, how to undo mistakes quickly and easily, how to browse the history of your project and view changes between commits, and how to push and pull from remote repositories.
Chapter 3. Git Branching
Abstract
Nearly every VCS has some form of branching support. Branching means you diverge from the main line of development and continue to do work without messing with that main line. In many VCS tools, this is a somewhat expensive process, often requiring you to create a new copy of your source code directory, which can take a long time for large projects.
Chapter 4. Git on the Server
Abstract
At this point, you should be able to do most of the day-to-day tasks for which you’ll be using Git. However, in order to do any collaboration in Git, you’ll need to have a remote Git repository. Although you can technically push change to and pull changes from individuals’ repositories, doing so is discouraged because you can fairly easily confuse what they’re working on if you’re not careful. Furthermore, you want your collaborators to be able to access the repository even if your computer is offline—having a more reliable common repository is often useful. Therefore, the preferred method for collaborating with someone is to set up an intermediate repository that you both have access to, and push to and pull from that. I’ll refer to this repository as a Git server; but you’ll notice that it generally takes a tiny amount of resources to host a Git repo, so you’ll rarely need to use an entire server for it.
Chapter 5. Distributed Git
Abstract
Now that you have a remote Git repository set up as a point for all the developers to share their code, and you’re familiar with basic Git commands in a local workflow, you’ll look at how to utilize some of the distributed workflows that Git affords you.
Chapter 6. Git Tools
Abstract
By now, you’ve learned most of the day-to-day commands and workflows that you need to manage or maintain a Git repository for your source-code control. You’ve accomplished the basic tasks of tracking and committing files, and you’ve harnessed the power of the staging area and lightweight topic branching and merging.
Chapter 7. Customizing Git
Abstract
So far, I’ve covered the basics of how Git works and how to use it, and I’ve introduced a number of tools that Git provides to help you use it easily and efficiently. In this chapter, I’ll go through some operations that you can use to make Git operate in a more customized fashion by introducing several important configuration settings and the hooks system. With these tools, it’s easy to get Git to work exactly the way you, your company, or your group needs it to.
Chapter 8. Git and Other Systems
Abstract
The world isn’t perfect. Usually, you can’t immediately switch every project you come in contact with to Git. Sometimes you’re stuck on a project using another VCS, and many times that system is Subversion. You’ll spend the first part of this chapter learning about, the bidirectional Subversion gateway tool in Git.
Chapter 9. Git Internals
Abstract
You may have skipped to this chapter from a previous chapter, or you may have gotten here after reading the rest of the book—in either case, this is where you’ll go over the inner workings and implementation of Git. I found that learning this information was fundamentally important to understanding how useful and powerful Git is, but others have argued to me that it can be confusing and unnecessarily complex for beginners. Thus, I’ve made this discussion the last chapter in the book so you could read it early or later in your learning process. I leave it up to you to decide.
Backmatter
Metadaten
Titel
Pro Git
verfasst von
Scott Chacon
Copyright-Jahr
2009
Verlag
Apress
Electronic ISBN
978-1-4302-1834-0
Print ISBN
978-1-4302-1833-3
DOI
https://doi.org/10.1007/978-1-4302-1834-0