This pocket guide is the perfect on-the-job companion to Git, the distributed version control system. It provides a compact, readable introduction to Git for new users, as well as a reference to common commands and procedures for those of you with Git experience.
Written for Git version 1.8.2, this handy task-oriented guide is organized around the basic version control functions you need, such as making commits, fixing mistakes, merging, and searching history.
- Examine the state of your project at earlier points in time
- Learn the basics of creating and making changes to a repository
- Create branches so many people can work on a project simultaneously
- Merge branches and reconcile the changes among them
- Clone an existing repository and share changes with push/pull commands
- Examine and change your repository’s commit history
- Access remote repositories, using different network protocols
- Get recipes for accomplishing a variety of common tasks
Preface;What Is Git?;Goals of This Book;Conventions Used in This Book;Using Code Examples;Safari? Books Online;How to Contact Us;Acknowledgments;Chapter 1: Understanding Git;1.1 Overview;1.2 The Object Store;1.3 Object IDs and SHA-1;1.4 Where Objects Live;1.5 The Commit Graph;1.6 Refs;1.7 Branches;1.8 The Index;1.9 Merging;1.10 Push and Pull;Chapter 2: Getting Started;2.1 Basic Configuration;2.2 Creating a New, Empty Repository;2.3 Importing an Existing Project;2.4 Ignoring Files;Chapter 3: Making Commits;3.1 Changing the Index;3.2 Making a Commit;Chapter 4: Undoing and Editing Commits;4.1 Changing the Last Commit;4.2 Discarding the Last Commit;4.3 Undoing a Commit;4.4 Editing a Series of Commits;Chapter 5: Branching;5.1 The Default Branch, master;5.2 Making a New Branch;5.3 Switching Branches;5.4 Deleting a Branch;5.5 Renaming a Branch;Chapter 6: Tracking Other Repositories;6.1 Cloning a Repository;6.2 Local, Remote, and Tracking BralĂ#