Fork me on GitHub

Project Notes

#307 Pro Git

About Pro Git - the essential guide for mastering Git by Scott Chacon and Ben Straub.

Notes

Pro Git provides an in-depth guide into Git, the powerful distributed version control system. This resource, available both in print and as a free online edition, covers everything from basic commands to advanced techniques, making it suitable for both beginners and experienced developers. Pro Git explains core concepts like branching, merging, and collaboration workflows, helping readers understand Git’s flexibility and power in managing project versions, collaborating on code, and tracking changes over time. With practical examples and clear explanations, it’s an essential guide for mastering Git.

It is is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Web and e-book versions are available online.

Print versions are available for purchase on amazon.

Contents

  1. Getting Started
    1. About Version Control
    2. A Short History of Git
    3. What is Git?
    4. The Command Line
    5. Installing Git
    6. First-Time Git Setup
    7. Getting Help
    8. Summary
  2. Git Basics
    1. Getting a Git Repository
    2. Recording Changes to the Repository
    3. Viewing the Commit History
    4. Undoing Things
    5. Working with Remotes
    6. Tagging
    7. Git Aliases
    8. Summary
  3. Git Branching
    1. Branches in a Nutshell
    2. Basic Branching and Merging
    3. Branch Management
    4. Branching Workflows
    5. Remote Branches
    6. Rebasing
    7. Summary
  4. 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. Git Daemon
    6. Smart HTTP
    7. GitWeb
    8. GitLab
    9. Third Party Hosted Options
    10. Summary
  5. Distributed Git
    1. Distributed Workflows
    2. Contributing to a Project
    3. Maintaining a Project
    4. Summary
  6. GitHub
    1. Account Setup and Configuration
    2. Contributing to a Project
    3. Maintaining a Project
    4. Managing an organization
    5. Scripting GitHub
    6. Summary
  7. Git Tools
    1. Revision Selection
    2. Interactive Staging
    3. Stashing and Cleaning
    4. Signing Your Work
    5. Searching
    6. Rewriting History
    7. Reset Demystified
    8. Advanced Merging
    9. Rerere
    10. Debugging with Git
    11. Submodules
    12. Bundling
    13. Replace
    14. Credential Storage
    15. Summary
  8. Customizing Git
    1. Git Configuration
    2. Git Attributes
    3. Git Hooks
    4. An Example Git-Enforced Policy
    5. Summary
  9. Git and Other Systems
    1. Git as a Client
    2. Migrating to Git
    3. Summary
  10. Git Internals
    1. Plumbing and Porcelain
    2. Git Objects
    3. Git References
    4. Packfiles
    5. The Refspec
    6. Transfer Protocols
    7. Maintenance and Data Recovery
    8. Environment Variables
    9. Summary
  11. Appendix A: Git in Other Environments
    1. Graphical Interfaces
    2. Git in Visual Studio
    3. Git in Visual Studio Code
    4. Git in IntelliJ / PyCharm / WebStorm / PhpStorm / RubyMine
    5. Git in Sublime Text
    6. Git in Bash
    7. Git in Zsh
    8. Git in PowerShell
    9. Summary
  12. Appendix B: Embedding Git in your Applications
    1. Command-line Git
    2. Libgit2
    3. JGit
    4. go-git
    5. Dulwich
  13. Appendix C: Git Commands
    1. Setup and Config
    2. Getting and Creating Projects
    3. Basic Snapshotting
    4. Branching and Merging
    5. Sharing and Updating Projects
    6. Inspection and Comparison
    7. Debugging
    8. Patching
    9. Email
    10. External Systems
    11. Administration
    12. Plumbing Commands

Credits and References

  • Pro Git - online and e-book versions
  • Pro Git - print version at amazon
About LCK#307 vcsgitbook

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

Project Source on GitHub Return to the LittleCodingKata Catalog
About LittleCodingKata

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.

Follow the Blog follow projects and notes as they are published in your favourite feed reader