- The document discusses the basic components and concepts of Git such as the repository, working tree, index, commits, branches, merging and rebasing.
- It provides explanations and examples of each concept, how they relate to each other, and how they differ from SVN.
- Useful Git commands are also presented as tips, including stash, bisect, commit --amend, rebase -i, cherry-pick and reflog. Settings that can improve the Git experience are also briefly mentioned.
8. Component
git checkout
Repository Working Tree
いつでもリポジトリから以前の状態の
ワーキングツリーをチェックアウト可能
You can check out the working tree from the repository
Index
at any time of the previous state.
9. Component
git checkout
ワーキングツリーの変更がイン
デックスへ登録される
Repository
Change the working tree to the index is
registered.
Working Tree
git add
Index
10. Component
git checkout
インデックスの変更がリポジトリ
へコミットされる
Repository Working Tree
Index changes are committed to the
repository.
git commit git add
Index
11. Component
Repository Working Tree
一時的な変更やコミットできない git stash
変更を退避させる
Evacuate and commit changes that can
not be a temporary change.
Index stash
14. Commit
ファイルツリー
どれか1つでも異なれば同じファイ
File tree
ル、同じ内容でも異なるコミット
付加情報 the same ?le with different,
Commit
even with the same content but
Additional information
different if any one.
直前のコミット
Last commit
16. Commit
任意のコミットから最初のコミット
(initial commit) からそのコミットに
至る全ての履歴が取得できる
History all the way to commit from the
(initial commit) can be obtained from the
?rst commit commit any.