Git

Book

2nd Edition (2014)

Download Ebook

The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Print versions of the book are available on Amazon.com.

The version found here has been updated with corrections and additions from hundreds of contributors. If you see an error or have a suggestion, patches and issues are welcome in its GitHub repository.

  1. 1. 開始

    1. 1.1 關於版本控制
    2. 1.2 Git 的簡史
    3. 1.3 Git 基礎要點
    4. 1.4 命令列
    5. 1.5 Git 安裝教學
    6. 1.6 初次設定 Git
    7. 1.7 取得說明文件
    8. 1.8 摘要
  2. 2. Git 基礎

    1. 2.1 取得一個 Git 倉儲
    2. 2.2 紀錄變更到版本庫中
    3. 2.3 檢視提交的歷史記錄
    4. 2.4 復原
    5. 2.5 與遠端協同工作
    6. 2.6 標籤
    7. 2.7 Git Aliases
    8. 2.8 總結
  3. 3. 使用 Git 分支

    1. 3.1 簡述分支
    2. 3.2 分支和合併的基本用法
    3. 3.3 分支管理
    4. 3.4 分支工作流程
    5. 3.5 遠端分支
    6. 3.6 衍合
    7. 3.7 總結
  4. 4. 伺服器上的 Git

    1. 4.1 通訊協定
    2. 4.2 在伺服器上佈署 Git
    3. 4.3 產生你的 SSH 公鑰
    4. 4.4 設定伺服器
    5. 4.5 Git 常駐程式
    6. 4.6 Smart HTTP
    7. 4.7 GitWeb
    8. 4.8 GitLab
    9. 4.9 第3方 Git 託管方案
    10. 4.10 總結
  5. 5. 分散式的 Git

    1. 5.1 分散式工作流程
    2. 5.2 對專案進行貢獻
    3. 5.3 維護一個專案
    4. 5.4 Summary
  6. 6. GitHub

    1. 6.1 建立帳戶及設定
    2. 6.2 參與一個專案
    3. 6.3 維護專案
    4. 6.4 Managing an organization
    5. 6.5 Scripting GitHub
    6. 6.6 總結
  7. 7. Git 工具

    1. 7.1 Revision Selection
    2. 7.2 Interactive Staging
    3. 7.3 Stashing and Cleaning
    4. 7.4 Signing Your Work
    5. 7.5 Searching
    6. 7.6 Rewriting History
    7. 7.7 Reset Demystified
    8. 7.8 Advanced Merging
    9. 7.9 Rerere
    10. 7.10 Debugging with Git
    11. 7.11 Submodules
    12. 7.12 Bundling
    13. 7.13 Replace
    14. 7.14 Credential Storage
    15. 7.15 總結
  8. 8. Customizing Git

    1. 8.1 Git Configuration
    2. 8.2 Git Attributes
    3. 8.3 Git Hooks
    4. 8.4 An Example Git-Enforced Policy
    5. 8.5 Summary
  9. 9. Git and Other Systems

    1. 9.1 Git as a Client
    2. 9.2 Migrating to Git
    3. 9.3 Summary
  10. 10. Git Internals

    1. 10.1 Plumbing and Porcelain
    2. 10.2 Git Objects
    3. 10.3 Git References
    4. 10.4 Packfiles
    5. 10.5 The Refspec
    6. 10.6 Transfer Protocols
    7. 10.7 Maintenance and Data Recovery
    8. 10.8 Environment Variables
    9. 10.9 Summary
  11. A1. 附錄 A: Git in Other Environments

    1. A1.1 Graphical Interfaces
    2. A1.2 Git in Visual Studio
    3. A1.3 Git in Eclipse
    4. A1.4 Git in Bash
    5. A1.5 Git in Zsh
    6. A1.6 Git in Powershell
    7. A1.7 Summary
  12. A2. 附錄 B: Embedding Git in your Applications

    1. A2.1 Command-line Git
    2. A2.2 Libgit2
    3. A2.3 JGit
  13. A3. 附錄 C: Git Commands

    1. A3.1 Setup and Config
    2. A3.2 Getting and Creating Projects
    3. A3.3 Basic Snapshotting
    4. A3.4 Branching and Merging
    5. A3.5 Sharing and Updating Projects
    6. A3.6 Inspection and Comparison
    7. A3.7 Debugging
    8. A3.8 Patching
    9. A3.9 Email
    10. A3.10 External Systems
    11. A3.11 Administration
    12. A3.12 Plumbing Commands
scroll-to-top