projects:progit:inspection
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:progit:inspection [2016/02/06 22:02] – created mkucia | projects:progit:inspection [2016/02/21 21:28] (current) – [References] mkucia | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Inspecting Git repository ====== | ====== Inspecting Git repository ====== | ||
- | ===== Three main states | + | ===== The Three Main States |
^ State ^ Location ^ Description ^ Method of inspection ^ | ^ State ^ Location ^ Description ^ Method of inspection ^ | ||
- | | Commited | .git directory | Stored in DB | '' | + | | Commited | .git directory | Stored in DB | '' |
- | | Modified | Working directory | Changed | '' | + | | Modified | Working directory | Changed | '' |
- | | Staged | Staging area | Changed and marked for next commit to the DB | '' | + | | Staged | Staging area (.git/ |
- | ===== Headline ===== | + | Staging area has many names: |
+ | * Index | ||
+ | * Cache | ||
+ | * Directory cache | ||
+ | * Current directory cache | ||
+ | * Staging area | ||
+ | * Staged files | ||
- | ===== Specifying revision | + | ===== Revision |
+ | There are many ways to distinguish a specific commit from Git repository. | ||
+ | |||
+ | - '' | ||
+ | - (refnames, refs) | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - more ... | ||
+ | ==== Walking the tree with '' | ||
+ | < | ||
+ | A = = A^0 | ||
+ | B = A^ = A^1 = A~1 | ||
+ | C = A^2 = A^2 | ||
+ | D = A^^ = A^1^1 = A~2 | ||
+ | E = B^2 = A^^2 | ||
+ | F = B^3 = A^^3 | ||
+ | G = A^^^ = A^1^1^1 = A~3 | ||
+ | H = D^2 = B^^2 = A^^^2 = A~2^2 | ||
+ | I = F^ = B^3^ = A^^3^ | ||
+ | J = F^2 = B^3^2 = A^^3^2 | ||
+ | </ | ||
+ | ==== Tree ==== | ||
+ | (idea taken from [[https:// | ||
- | ===== Debugging with git ===== | + | < |
+ | <?xml version=" |