Skip to content

About

Introduction to Git

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

A commit graph with a branch that merges back

Git 概論
Introduction to Git

License: CC BY-NC-SA 4.0 Chapters Languages Contributions welcome

An open book on Git for two kinds of readers: people who have never used it, and computer science students who need to use it for real. It follows one small firmware project and one change inside it, from the first line you edit to a tagged release. Every step is shown twice, as a Git command and in Sourcetree, with GitHub as the hosting platform. Each chapter has commit graphs, term and know-how boxes, optional deep dives into how Git works inside, and a hands-on section that uses the practice project included in this repository.


目錄 · Contents · 目次 · 목차

第 0 部 開始之前 · Part 0: Before You Start · 第 0 部 はじめる前に · 제0부 시작하기 전에

章 繁體中文 English 日本語 한국어
0 Git 全景 The Big Picture Git の全体像 Git의 전체 그림
1 準備工具 Setting Up Your Tools ツールの準備 도구 준비

第 1 部 在自己的電腦上 · Part 1: On Your Own Computer · 第 1 部 自分のパソコンで · 제1부 내 컴퓨터에서

章 繁體中文 English 日本語 한국어
2 三個區域 The Three Areas 3 つの領域 세 가지 영역
3 Commit 的真面目 What a Commit Really Is コミットの正体 커밋의 정체
4 分支 Branches ブランチ 브랜치
5 合併與衝突 Merging and Conflicts マージとコンフリクト 병합과 충돌

第 2 部 走出自己的電腦 · Part 2: Beyond Your Computer · 第 2 部 パソコンの外へ · 제2부 내 컴퓨터 밖으로

章 繁體中文 English 日本語 한국어
6 遠端儲存庫 Remote Repositories リモートリポジトリ 원격 저장소
7 Pull Request 與程式碼審查 Pull Requests and Code Review プルリクエストとコードレビュー 풀 리퀘스트와 코드 리뷰
8 分支策略與版本發布 Branching Strategies and Releases ブランチ戦略とリリース 브랜치 전략과 릴리스

第 3 部 出事的時候 · Part 3: When Things Go Wrong · 第 3 部 困ったときは · 제3부 문제가 생겼을 때

章 繁體中文 English 日本語 한국어
9 後悔藥 Undoing Things 取り消しとやり直し 되돌리기
10 好習慣 Good Habits よい習慣 좋은 습관

附錄 · Appendices · 付録 · 부록

繁體中文 English 日本語 한국어
A 術語總表 Glossary 用語集 용어집
B 現場行話 Team Jargon 現場の言い回し 현장 용어
C 指令與 Sourcetree 對照表 Commands and Sourcetree コマンドと Sourcetree の対応表 명령어와 Sourcetree 대응표
D 延伸閱讀 Further Reading 参考文献 참고 자료

Reading paths

Path What to read
🌱 New to Git The main text and hands-on sections in order; skip the deep dives
🎓 Computer science students The whole book in order, including the deep dives
🚀 Start using Git today Chapters 0, 1, 2, 4 and 6
👥 Getting ready to join a team Chapters 6–8 and Appendix B
🚑 Something went wrong Chapter 9 and Appendix C

To follow along from any chapter, clone this repository and run bash practice/setup.sh <chapter>. It creates a practice repository in the state that chapter starts from.


Contributing

The original text is written in Traditional Chinese, and the other languages are translations of it. If this book helps you, please give it a ⭐ star so that more people can find it.


Disclaimer

This book is based on public documentation and common practice. It is not affiliated with the Git project, GitHub or Sourcetree. Sourcetree and GitHub are used only as examples of a graphical client and a hosting platform. Their screens change between versions and operating systems, so the book uses simplified diagrams instead of screenshots.

License

The text and images are licensed under CC BY-NC-SA 4.0. You may share, adapt and translate them for non-commercial purposes, as long as you give credit and share your work under the same license.

About

Introduction to Git

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages