Sources

S1 — Pro Git, About Version Control

URL: https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control.html

  • authority: official-docs
  • supports: 版本控制的定义,以及它为什么重要。
  • key-fact: "Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later."

S2 — Pro Git, What is Git?

URL: https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F

  • authority: official-docs
  • supports: Git 中文件的三种主要状态:已修改、已暂存、已提交。
  • key-fact: "Git has three main states that your files can reside in: modified, staged, and committed."

S3 — Pro Git, Getting a Git Repository

URL: https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository

  • authority: official-docs
  • supports: 如何用 git init 初始化 Git 仓库,以及 .git 目录。
  • key-fact: "You can take a local directory that is currently not under version control, and turn it into a Git repository... This creates a new subdirectory named .git that contains all of your necessary repository files."

S4 — Pro Git, Recording Changes to the Repository

URL: https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository

  • authority: official-docs
  • supports: git addgit commitgit status 与暂存区。
  • key-fact: "To begin tracking a new file, you use the command git add... Now that your staging area is set up the way you want it, you can commit your changes... git commit."

S5 — Pro Git, Basic Branching and Merging

URL: https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

  • authority: official-docs
  • supports: 分支、git switchgit merge
  • key-fact: "To create a new branch and switch to it at the same time, you can run the git checkout command with the -b switch... You can run your tests... and finally merge the hotfix branch back into your master branch."

S6 — Git User Manual

URL: https://git.github.io/htmldocs/user-manual.html

  • authority: official-docs
  • supports: 如何用 git restore 找回文件的旧版本。
  • key-fact: "In the process of undoing a previous bad change, you may find it useful to check out an older version of a particular file using git-restore(1). The command git restore --source=HEAD^ path/to/file replaces path/to/file by the contents it had in the commit HEAD^."

S7 — gittutorial Documentation

URL: https://git-scm.com/docs/gittutorial

  • authority: official-docs
  • supports: 作为 “index” 的暂存区,以及基本的提交流程。
  • key-fact: "This snapshot is now stored in a temporary staging area which Git calls the 'index'. You can permanently store the contents of the index in the repository with git commit."

S8 — Git Reference, Basic Snapshotting

URL: https://git.github.io/git-reference/basic/

  • authority: authoritative-guide
  • supports: 快照式工作流,以及作为官方文档补充的暂存区讲解。
  • key-fact: "Git is all about composing and saving snapshots of your project and then working with and comparing those snapshots... An important concept here is that Git has an 'index', which acts as sort of a staging area for your snapshot."

S9 — Atlassian Git Glossary

URL: https://www.atlassian.com/git/glossary

  • authority: authoritative-guide
  • supports: repository、commit、branch 等术语的定义。
  • key-fact: "git init — Initializes a new Git repository. If you want to place a project under revision control, this is the first command you need to learn."