> For the complete documentation index, see [llms.txt](https://tkssharma-devops.gitbook.io/devops-training/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tkssharma-devops.gitbook.io/devops-training/version-control/untitled.md).

# Git as Version Control

1. **1.** [**Getting Started**](https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control)
   1. 1.1 [About Version Control](https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control)
   2. 1.2 [A Short History of Git](https://git-scm.com/book/en/v2/Getting-Started-A-Short-History-of-Git)
   3. 1.3 [What is Git?](https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F)
   4. 1.4 [The Command Line](https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line)
   5. 1.5 [Installing Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
   6. 1.6 [First-Time Git Setup](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup)
   7. 1.7 [Getting Help](https://git-scm.com/book/en/v2/Getting-Started-Getting-Help)
   8. 1.8 [Summary](https://git-scm.com/book/en/v2/Getting-Started-Summary)
2. **2.** [**Git Basics**](https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository)
   1. 2.1 [Getting a Git Repository](https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository)
   2. 2.2 [Recording Changes to the Repository](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository)
   3. 2.3 [Viewing the Commit History](https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History)
   4. 2.4 [Undoing Things](https://git-scm.com/book/en/v2/Git-Basics-Undoing-Things)
   5. 2.5 [Working with Remotes](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes)
   6. 2.6 [Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)
   7. 2.7 [Git Aliases](https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases)
   8. 2.8 [Summary](https://git-scm.com/book/en/v2/Git-Basics-Summary)
3. **3.** [**Git Branching**](https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell)
   1. 3.1 [Branches in a Nutshell](https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell)
   2. 3.2 [Basic Branching and Merging](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging)
   3. 3.3 [Branch Management](https://git-scm.com/book/en/v2/Git-Branching-Branch-Management)
   4. 3.4 [Branching Workflows](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows)
   5. 3.5 [Remote Branches](https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches)
   6. 3.6 [Rebasing](https://git-scm.com/book/en/v2/Git-Branching-Rebasing)
   7. 3.7 [Summary](https://git-scm.com/book/en/v2/Git-Branching-Summary)
4. **4.** [**Git on the Server**](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols)
   1. 4.1 [The Protocols](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols)
   2. 4.2 [Getting Git on a Server](https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server)
   3. 4.3 [Generating Your SSH Public Key](https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key)
   4. 4.4 [Setting Up the Server](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server)
   5. 4.5 [Git Daemon](https://git-scm.com/book/en/v2/Git-on-the-Server-Git-Daemon)
   6. 4.6 [Smart HTTP](https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP)
   7. 4.7 [GitWeb](https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb)
   8. 4.8 [GitLab](https://git-scm.com/book/en/v2/Git-on-the-Server-GitLab)
   9. 4.9 [Third Party Hosted Options](https://git-scm.com/book/en/v2/Git-on-the-Server-Third-Party-Hosted-Options)
   10. 4.10 [Summary](https://git-scm.com/book/en/v2/Git-on-the-Server-Summary)
5. **5.** [**Distributed Git**](https://git-scm.com/book/en/v2/Distributed-Git-Distributed-Workflows)
   1. 5.1 [Distributed Workflows](https://git-scm.com/book/en/v2/Distributed-Git-Distributed-Workflows)
   2. 5.2 [Contributing to a Project](https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project)
   3. 5.3 [Maintaining a Project](https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project)
   4. 5.4 [Summary](https://git-scm.com/book/en/v2/Distributed-Git-Summary)
6. **6.** [**GitHub**](https://git-scm.com/book/en/v2/GitHub-Account-Setup-and-Configuration)
   1. 6.1 [Account Setup and Configuration](https://git-scm.com/book/en/v2/GitHub-Account-Setup-and-Configuration)
   2. 6.2 [Contributing to a Project](https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project)
   3. 6.3 [Maintaining a Project](https://git-scm.com/book/en/v2/GitHub-Maintaining-a-Project)
   4. 6.4 [Managing an organization](https://git-scm.com/book/en/v2/GitHub-Managing-an-organization)
   5. 6.5 [Scripting GitHub](https://git-scm.com/book/en/v2/GitHub-Scripting-GitHub)
   6. 6.6 [Summary](https://git-scm.com/book/en/v2/GitHub-Summary)
7. **7.** [**Git Tools**](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection)
   1. 7.1 [Revision Selection](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection)
   2. 7.2 [Interactive Staging](https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging)
   3. 7.3 [Stashing and Cleaning](https://git-scm.com/book/en/v2/Git-Tools-Stashing-and-Cleaning)
   4. 7.4 [Signing Your Work](https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work)
   5. 7.5 [Searching](https://git-scm.com/book/en/v2/Git-Tools-Searching)
   6. 7.6 [Rewriting History](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History)
   7. 7.7 [Reset Demystified](https://git-scm.com/book/en/v2/Git-Tools-Reset-Demystified)
   8. 7.8 [Advanced Merging](https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging)
   9. 7.9 [Rerere](https://git-scm.com/book/en/v2/Git-Tools-Rerere)
   10. 7.10 [Debugging with Git](https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git)
   11. 7.11 [Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
   12. 7.12 [Bundling](https://git-scm.com/book/en/v2/Git-Tools-Bundling)
   13. 7.13 [Replace](https://git-scm.com/book/en/v2/Git-Tools-Replace)
   14. 7.14 [Credential Storage](https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage)
   15. 7.15 [Summary](https://git-scm.com/book/en/v2/Git-Tools-Summary)
8. **8.** [**Customizing Git**](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)
   1. 8.1 [Git Configuration](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)
   2. 8.2 [Git Attributes](https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes)
   3. 8.3 [Git Hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
   4. 8.4 [An Example Git-Enforced Policy](https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-Policy)
   5. 8.5 [Summary](https://git-scm.com/book/en/v2/Customizing-Git-Summary)
9. **9.** [**Git and Other Systems**](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client)
   1. 9.1 [Git as a Client](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client)
   2. 9.2 [Migrating to Git](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git)
   3. 9.3 [Summary](https://git-scm.com/book/en/v2/Git-and-Other-Systems-Summary)
10. **10.** [**Git Internals**](https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain)
    1. 10.1 [Plumbing and Porcelain](https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain)
    2. 10.2 [Git Objects](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects)
    3. 10.3 [Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)
    4. 10.4 [Packfiles](https://git-scm.com/book/en/v2/Git-Internals-Packfiles)
    5. 10.5 [The Refspec](https://git-scm.com/book/en/v2/Git-Internals-The-Refspec)
    6. 10.6 [Transfer Protocols](https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols)
    7. 10.7 [Maintenance and Data Recovery](https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery)
    8. 10.8 [Environment Variables](https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables)
    9. 10.9 [Summary](https://git-scm.com/book/en/v2/Git-Internals-Summary)
