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
Table of contents
- 1. Understanding Git
- 2. Getting Started
- 3. Making Commits
- 4. Undoing and Editing Commits
- 5. Branching
- 6. Tracking Other Repositories
- 7. Merging
- 8. Naming Commits
9. Viewing History
- Command Format
- Output Formats
- Defining Your Own Formats
- Limiting Commits to Be Shown
- Regular Expressions
- Date Style
- Listing Changed Files
- Showing and Following Renames or Copies
- Rewriting Names and Addresses: The “mailmap”
- Searching for Changes: The “pickaxe”
- Showing Diffs
- Comparing Branches
- Showing Notes
- Commit Ordering
- History Simplification
- Related Commands
10. Editing History
- Importing from One Repository to Another
- Commit Surgery: git replace
- The Big Hammer: git filter-branch
- 11. Understanding Patches
- 12. Remote Access
- git cherry-pick
- git notes
- git grep
- git rev-parse
- git clean
- git stash
- git show
- git tag
- git diff
- git instaweb
- Git Hooks
- Visual Tools
14. How Do I…?
- …Make and Use a Central Repository?
- …Fix the Last Commit I Made?
- …Edit the Previous n Commits?
- …Undo My Last n Commits?
- …Reuse the Message from an Existing Commit?
- …Reapply an Existing Commit from Another Branch?
- …List Files with Conflicts when Merging?
- …Get a Summary of My Branches?
- …Get a Summary of My Working Tree and Index State?
- …Stage All the Current Changes to My Working Files?
- …Show the Changes to My Working Files?
- …Save and Restore My Working Tree and Index Changes?
- …Add a Downstream Branch Without Checking It Out?
- …List the Files in a Specific Commit?
- …Show the Changes Made by a Commit?
- …Get Tab Completion of Branch Names, Tags, and So On?
- …List All Remotes?
- …Change the URL for a Remote?
- …Remove Old Remote-Tracking Branches?
- …Have git log:
- About the Author
- Title: Git Pocket Guide
- Release date: July 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449325862
You might also like
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
Leverage the power of Git to smooth out the development cycle Professional Git takes a professional …
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …