-
. Getting Started
- .1 About Version Control
- .2 A Short History of Git
- .3 Git Basics
- .4 Installing Git
- .5 First-Time Git Setup
- .6 Getting Help
- .7 Summary
-
. Git Basics
-
. Git Branching
-
. Git on the Server
- .1 The Protocols
- .2 Getting Git on a Server
- .3 Generating Your SSH Public Key
- .4 Setting Up the Server
- .5 Public Access
- .6 GitWeb
- .7 Gitosis
- .8 Gitolite
- .9 Git Daemon
- .10 Hosted Git
- .11 Summary
-
. Distributed Git
-
. Git Tools
- .1 Revision Selection
- .2 Interactive Staging
- .3 Stashing
- .4 Rewriting History
- .5 Debugging with Git
- .6 Submodules
- .7 Subtree Merging
- .8 Summary
Chapter 3
Git Branching
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.
Some people refer to the branching model in Git as its “killer feature” , and it certainly sets Git apart in the VCS community. Why is it so special? The way Git branches is incredibly lightweight, making branching operations nearly instantaneous and switching back and forth between branches generally just as fast. Unlike many other VCSs, Git encourages a workflow that branches and merges often, even multiple times in a day. Understanding and mastering this feature gives you a powerful and unique tool and can literally change the way that you develop.