User Tools

Site Tools


projects:progit:inspection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:progit:inspection [2016/02/06 23:23] mkuciaprojects:progit:inspection [2016/02/21 21:28] (current) – [References] mkucia
Line 1: Line 1:
 ====== Inspecting Git repository ====== ====== Inspecting Git repository ======
  
-===== Te 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 | ''git log'' |+| Commited | .git directory | Stored in DB | ''git log'' ''git show'' ''...'' |
 | Modified | Working directory | Changed | ''git status'' ''git diff'' | | Modified | Working directory | Changed | ''git status'' ''git diff'' |
 | Staged | Staging area (.git/index) | Changed and marked for next commit to the DB | ''git status'' | | Staged | Staging area (.git/index) | Changed and marked for next commit to the DB | ''git status'' |
  
-<hidden Staging area has many names>+Staging area has many names:
   * Index   * Index
   * Cache   * Cache
Line 15: Line 15:
   * Staging area   * Staging area
   * Staged files   * Staged files
-</hidden> 
  
-===== Specifying revision =====+===== Revision =====
 There are many ways to distinguish a specific commit from Git repository. There are many ways to distinguish a specific commit from Git repository.
    
-  - SHA (hash) - The [[wp>SHA-1]] algorithm is used to create a unique 40-byte hexadecimal string in many corners of git. The SHA (hash-object cat-file)+  - ''**SHA**'' (hash) - The [[wp>SHA-1]] algorithm is used to create a unique 40-byte hexadecimal string in many corners of git. The SHA (hash-object cat-file) 
 +  - (refnames, refs) 
 +    - ''**Branch reference**'' (heads) - Branches in Git are nothing more than pointers to the commit. Branch reference is a SHA value of the most recent commit and it is updated with each new commit added. (show rev-parse show-ref) 
 +    - ''**Tag reference**'' - Similar to Branch reference but does not change with new commits. (git describe) 
 +    - ''**HEAD**'' (''**@**'') - Note the capital letters. Points to the current commit. (git describe) 
 +    - ''**Other**'' like FETCH_HEAD, MERGE_HEAD, CHERRY_PICK_HEAD, ORIG_HEAD 
 +    - ''**<refname>@{<date>}**'' - For example ''master@{yesterday}'', ''HEAD@{5 minutes ago}''. Note: Date parsing is undocumented but the parser [[https://github.com/git/git/blob/master/date.c|code]] can be accessed on github. 
 +    - ''**<refname>@{n}**'' - For example ''master@{7}'' returns 7th prior commit from master head. 
 +    - ''**<refname>@{-n}**'' - For example ''@{-2}'' returns 2nd commit checked out before current one. 
 +    - ''**<branchname>@{upstream}**'' ''git rev-parse --symbolic-full-name @{u}'' 
 +    - ''**<rev>^n**'' 
 +    - ''**<rev>~n**'' 
 +    - more ... 
 +==== Walking the tree with ''^'' and ''~'' ==== 
 +<code> 
 +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 
 +</code> 
 +==== Tree ==== 
 +(idea taken from [[https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html|here]]) 
 + 
 +<html> 
 +<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg    xmlns:dc="http://purl.org/dc/elements/1.1/"    xmlns:cc="http://creativecommons.org/ns#"    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"    xmlns:svg="http://www.w3.org/2000/svg"    xmlns="http://www.w3.org/2000/svg"    style="fill:none;stroke:none;stroke-linecap:square;stroke-miterlimit:10"    height="329.63779"    width="308.31232"    id="svg2"    stroke-miterlimit="10"    viewBox="0 0 308.31232 329.63779"    version="1.1">   <metadata      id="metadata135">     <rdf:RDF>       <cc:Work          rdf:about="">         <dc:format>image/svg+xml</dc:format>         <dc:type            rdf:resource="http://purl.org/dc/dcmitype/StillImage" />         <dc:title></dc:title>       </cc:Work>     </rdf:RDF>   </metadata>   <defs      id="defs133" />   <clipPath      id="p.0">     <path        style="clip-rule:nonzero"        id="path5"        d="M 0,0 960,0 960,540 0,540 0,0 Z" />   </clipPath>   <     transform="translate(-103.88058,-67.47113)"      id="g7"      clip-path="url(#p.0)">     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path11"        d="m 109.38058,97.94751 0,0 c 0,-13.794075 11.1823,-24.97638 24.97637,-24.97638 l 0,0 c 6.62416,0 12.97699,2.631432 17.66098,7.315407 4.68398,4.683983 7.3154,11.036819 7.3154,17.660973 l 0,0 c 0,13.79407 -11.1823,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97637,-11.1823 -24.97637,-24.97637 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path13"        d="m 109.38058,97.94751 0,0 c 0,-13.794075 11.1823,-24.97638 24.97637,-24.97638 l 0,0 c 6.62416,0 12.97699,2.631432 17.66098,7.315407 4.68398,4.683983 7.3154,11.036819 7.3154,17.660973 l 0,0 c 0,13.79407 -11.1823,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97637,-11.1823 -24.97637,-24.97637 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path15"        d="m 134.80437,99.86751 0,-2.296875 5.92187,0 0,5.421875 q -0.85937,0.82812 -2.5,1.46875 -1.64062,0.64062 -3.3125,0.64062 -2.14062,0 -3.73437,-0.89062 -1.57813,-0.90625 -2.375,-2.5625 -0.79688,-1.671875 -0.79688,-3.625 0,-2.125 0.89063,-3.78125 0.89062,-1.65625 2.60937,-2.53125 1.3125,-0.671875 3.25,-0.671875 2.54688,0 3.96875,1.0625 1.42188,1.0625 1.82813,2.9375 l -2.73438,0.5 q -0.28125,-1 -1.07812,-1.578125 -0.79688,-0.578125 -1.98438,-0.578125 -1.79687,0 -2.85937,1.140625 -1.0625,1.140625 -1.0625,3.390625 0,2.421875 1.07812,3.640625 1.07813,1.20312 2.82813,1.20312 0.85937,0 1.71875,-0.34375 0.875,-0.34375 1.5,-0.82812 l 0,-1.71875 -3.15625,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path17"        d="m 185.23622,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66097,7.315407 4.68397,4.683983 7.31541,11.036819 7.31541,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path19"        d="m 185.23622,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66097,7.315407 4.68397,4.683983 7.31541,11.036819 7.31541,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path21"        d="m 204.99174,104.86751 0,-13.59375 1.8125,0 0,5.578125 7.0625,0 0,-5.578125 1.79687,0 0,13.59375 -1.79687,0 0,-6.40625 -7.0625,0 0,6.40625 -1.8125,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path23"        d="m 261.09186,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66098,7.315407 4.68396,4.683983 7.3154,11.036819 7.3154,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path25"        d="m 261.09186,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66098,7.315407 4.68396,4.683983 7.3154,11.036819 7.3154,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path27"        d="m 285.24222,104.86751 0,-13.59375 1.8125,0 0,13.59375 -1.8125,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path29"        d="m 336.9475,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66095,7.315407 4.68399,4.683983 7.31543,11.036819 7.31543,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path31"        d="m 336.9475,97.94751 0,0 c 0,-13.794075 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.631432 17.66095,7.315407 4.68399,4.683983 7.31543,11.036819 7.31543,17.660973 l 0,0 c 0,13.79407 -11.18231,24.97637 -24.97638,24.97637 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97637 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path33"        d="m 357.8067,101.00813 1.625,-0.21875 q 0.0625,1.54687 0.57812,2.125 0.53125,0.57812 1.4375,0.57812 0.6875,0 1.17188,-0.3125 0.5,-0.3125 0.67187,-0.84375 0.1875,-0.53125 0.1875,-1.70312 l 0,-9.359375 1.8125,0 0,9.265625 q 0,1.70312 -0.42187,2.64062 -0.40625,0.9375 -1.3125,1.4375 -0.89063,0.48438 -2.09375,0.48438 -1.79688,0 -2.75,-1.03125 -0.9375,-1.03125 -0.90625,-3.0625 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path35"        d="m 164.64043,199.79265 0,0 c 0,-13.79407 11.1823,-24.97638 24.97636,-24.97638 l 0,0 c 6.62416,0 12.97699,2.63144 17.66098,7.31541 4.68398,4.68398 7.3154,11.03682 7.3154,17.66097 l 0,0 c 0,13.79408 -11.18229,24.97638 -24.97638,24.97638 l 0,0 c -13.79406,0 -24.97636,-11.1823 -24.97636,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path37"        d="m 164.64043,199.79265 0,0 c 0,-13.79407 11.1823,-24.97638 24.97636,-24.97638 l 0,0 c 6.62416,0 12.97699,2.63144 17.66098,7.31541 4.68398,4.68398 7.3154,11.03682 7.3154,17.66097 l 0,0 c 0,13.79408 -11.18229,24.97638 -24.97638,24.97638 l 0,0 c -13.79406,0 -24.97636,-11.1823 -24.97636,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path39"        d="m 184.25533,193.1189 5.01562,0 q 1.70313,0 2.59375,0.25 1.1875,0.35937 2.04688,1.26562 0.85937,0.89063 1.29687,2.20313 0.45313,1.29687 0.45313,3.20312 0,1.6875 -0.42188,2.89063 -0.51562,1.48437 -1.45312,2.40625 -0.71875,0.70312 -1.9375,1.09375 -0.90625,0.28125 -2.42188,0.28125 l -5.17187,0 0,-13.59375 z m 2.75,2.29687 0,9 2.04687,0 q 1.14063,0 1.65625,-0.125 0.67188,-0.17187 1.10938,-0.5625 0.4375,-0.40625 0.71875,-1.3125 0.28125,-0.92187 0.28125,-2.5 0,-1.57812 -0.28125,-2.42187 -0.28125,-0.84375 -0.78125,-1.3125 -0.5,-0.46875 -1.26563,-0.64063 -0.57812,-0.125 -2.25,-0.125 l -1.23437,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path41"        d="m 237.84251,199.79265 0,0 c 0,-13.79407 11.18231,-24.97638 24.9764,-24.97638 l 0,0 c 6.62414,0 12.97699,2.63144 17.66095,7.31541 4.68399,4.68398 7.31542,11.03682 7.31542,17.66097 l 0,0 c 0,13.79408 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79408,0 -24.97639,-11.1823 -24.97639,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path43"        d="m 237.84251,199.79265 0,0 c 0,-13.79407 11.18231,-24.97638 24.9764,-24.97638 l 0,0 c 6.62414,0 12.97699,2.63144 17.66095,7.31541 4.68399,4.68398 7.31542,11.03682 7.31542,17.66097 l 0,0 c 0,13.79408 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79408,0 -24.97639,-11.1823 -24.97639,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path45"        d="m 258.0971,206.71265 0,-13.59375 9.84375,0 0,1.59375 -8.04688,0 0,4.17187 7.53125,0 0,1.59375 -7.53125,0 0,4.625 8.35938,0 0,1.60938 -10.15625,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path47"        d="m 311.04462,199.79265 0,0 c 0,-13.79407 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.63144 17.66098,7.31541 4.68396,4.68398 7.3154,11.03682 7.3154,17.66097 l 0,0 c 0,13.79408 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path49"        d="m 311.04462,199.79265 0,0 c 0,-13.79407 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.63144 17.66098,7.31541 4.68396,4.68398 7.3154,11.03682 7.3154,17.66097 l 0,0 c 0,13.79408 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79407,0 -24.97638,-11.1823 -24.97638,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path51"        d="m 331.8855,206.71265 0,-13.59375 9.17187,0 0,1.59375 -7.375,0 0,4.21875 6.375,0 0,1.60937 -6.375,0 0,6.17188 -1.79687,0 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path53"        d="m 237.84251,301.6378 0,0 c 0,-13.79407 11.18231,-24.97638 24.9764,-24.97638 l 0,0 c 6.62414,0 12.97699,2.63144 17.66095,7.31543 4.68399,4.68396 7.31542,11.0368 7.31542,17.66095 l 0,0 c 0,13.79407 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79408,0 -24.97639,-11.18231 -24.97639,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path55"        d="m 237.84251,301.6378 0,0 c 0,-13.79407 11.18231,-24.97638 24.9764,-24.97638 l 0,0 c 6.62414,0 12.97699,2.63144 17.66095,7.31543 4.68399,4.68396 7.31542,11.0368 7.31542,17.66095 l 0,0 c 0,13.79407 -11.18231,24.97638 -24.97638,24.97638 l 0,0 c -13.79408,0 -24.97639,-11.18231 -24.97639,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path57"        d="m 257.98773,308.5578 0,-13.59375 5.10937,0 q 1.54688,0 2.48438,0.40625 0.95312,0.40625 1.48437,1.26562 0.53125,0.85938 0.53125,1.79688 0,0.875 -0.46875,1.65625 -0.46875,0.76562 -1.4375,1.23437 1.23438,0.35938 1.89063,1.23438 0.67187,0.875 0.67187,2.0625 0,0.95312 -0.40625,1.78125 -0.39062,0.8125 -0.98437,1.26562 -0.59375,0.4375 -1.5,0.67188 -0.89063,0.21875 -2.1875,0.21875 l -5.1875,0 z m 1.79687,-7.89063 2.9375,0 q 1.20313,0 1.71875,-0.15625 0.6875,-0.20312 1.03125,-0.67187 0.35938,-0.46875 0.35938,-1.1875 0,-0.67188 -0.32813,-1.1875 -0.32812,-0.51563 -0.9375,-0.70313 -0.59375,-0.20312 -2.0625,-0.20312 l -2.71875,0 0,4.10937 z m 0,6.28125 3.39063,0 q 0.875,0 1.21875,-0.0625 0.625,-0.10937 1.04687,-0.35937 0.42188,-0.26563 0.6875,-0.76563 0.26563,-0.5 0.26563,-1.14062 0,-0.76563 -0.39063,-1.32813 -0.39062,-0.5625 -1.07812,-0.78125 -0.6875,-0.23437 -1.98438,-0.23437 l -3.15625,0 0,4.67187 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path59"        d="m 356.74014,301.6378 0,0 c 0,-13.79407 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.63144 17.66098,7.31543 4.68399,4.68396 7.3154,11.0368 7.3154,17.66095 l 0,0 c 0,13.79407 -11.18228,24.97638 -24.97638,24.97638 l 0,0 c -13.79407,0 -24.97638,-11.18231 -24.97638,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path61"        d="m 356.74014,301.6378 0,0 c 0,-13.79407 11.18231,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97699,2.63144 17.66098,7.31543 4.68399,4.68396 7.3154,11.0368 7.3154,17.66095 l 0,0 c 0,13.79407 -11.18228,24.97638 -24.97638,24.97638 l 0,0 c -13.79407,0 -24.97638,-11.18231 -24.97638,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path63"        d="m 386.15195,303.79218 1.79687,0.45312 q -0.5625,2.21875 -2.03125,3.39063 -1.46875,1.15625 -3.59375,1.15625 -2.20312,0 -3.57812,-0.89063 -1.375,-0.90625 -2.09375,-2.59375 -0.71875,-1.70312 -0.71875,-3.65625 0,-2.125 0.79687,-3.70312 0.8125,-1.57813 2.3125,-2.39063 1.5,-0.82812 3.29688,-0.82812 2.04687,0 3.4375,1.04687 1.39062,1.03125 1.9375,2.90625 l -1.76563,0.42188 q -0.46875,-1.48438 -1.375,-2.15625 -0.90625,-0.6875 -2.26562,-0.6875 -1.5625,0 -2.625,0.75 -1.04688,0.75 -1.48438,2.03125 -0.42187,1.26562 -0.42187,2.60937 0,1.73438 0.5,3.03125 0.51562,1.28125 1.57812,1.92188 1.07813,0.64062 2.3125,0.64062 1.51563,0 2.5625,-0.85937 1.04688,-0.875 1.42188,-2.59375 z" />     <path        style="fill:#eeeeee;fill-rule:nonzero"        id="path65"        d="m 306.7874,366.63254 0,0 c 0,-13.79407 11.18228,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97696,2.63144 17.66095,7.31543 4.68399,4.68396 7.3154,11.0368 7.3154,17.66095 l 0,0 c 0,13.79407 -11.18228,24.97638 -24.97635,24.97638 l 0,0 c -13.7941,0 -24.97638,-11.18231 -24.97638,-24.97638 z" />     <path        style="fill-rule:nonzero;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path67"        d="m 306.7874,366.63254 0,0 c 0,-13.79407 11.18228,-24.97638 24.97638,-24.97638 l 0,0 c 6.62415,0 12.97696,2.63144 17.66095,7.31543 4.68399,4.68396 7.3154,11.0368 7.3154,17.66095 l 0,0 c 0,13.79407 -11.18228,24.97638 -24.97635,24.97638 l 0,0 c -13.7941,0 -24.97638,-11.18231 -24.97638,-24.97638 z" />     <path        style="fill:#000000;fill-rule:nonzero"        id="path69"        d="m 325.51074,373.55255 5.23437,-13.59375 1.9375,0 5.5625,13.59375 -2.04687,0 -1.59375,-4.125 -5.6875,0 -1.48438,4.125 -1.92187,0 z m 3.92187,-5.57813 4.60938,0 -1.40625,-3.78125 q -0.65625,-1.70312 -0.96875,-2.8125 -0.26563,1.3125 -0.73438,2.59375 l -1.5,4 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path71"        d="m 134.35695,122.92388 55.2756,51.90551" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path73"        d="m 134.35695,122.92388 50.90172,47.7983" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path75"        d="m 184.12799,171.92627 4.43886,1.9024 -2.17752,-4.31056 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path77"        d="m 210.2126,122.92388 -20.59843,51.90551" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path79"        d="m 210.2126,122.92388 -18.38525,46.32861" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path81"        d="m 190.29208,168.64323 -0.13867,4.82735 3.20918,-3.60883 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path83"        d="M 286.06824,122.92388 336.021,174.82939" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path85"        d="m 286.06824,122.92388 45.79224,47.58233" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path87"        d="m 330.67035,171.65157 4.33694,2.12448 -1.95672,-4.41518 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path89"        d="m 361.9239,122.92388 -25.88977,51.90551" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path91"        d="m 361.9239,122.92388 -23.2117,46.53635" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path93"        d="m 337.23413,168.72299 -0.54749,4.7982 3.50361,-3.32373 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path95"        d="m 189.61679,224.76903 73.19687,51.9055" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path97"        d="m 189.61679,224.76903 68.30255,48.43483" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path99"        d="m 256.9639,274.5512 4.65726,1.27771 -2.7464,-3.97241 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path101"        d="m 262.8189,224.76903 0,51.9055" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path103"        d="m 262.8189,224.76903 0,45.9055" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path105"        d="m 261.16718,270.67453 1.65173,4.53812 1.65174,-4.53812 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path107"        d="m 336.021,224.76903 -73.19684,51.9055" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path109"        d="m 336.021,224.76903 -68.30252,48.43483" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path111"        d="m 266.76303,271.8565 -2.74637,3.97241 4.65726,-1.27771 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path113"        d="m 336.021,224.76903 45.70078,51.9055" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path115"        d="m 336.021,224.76903 41.73584,47.40227" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path117"        d="m 376.51715,273.2628 4.23859,2.31454 -1.75919,-4.49755 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path119"        d="m 262.8189,326.61417 51.27557,22.36221" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path121"        d="m 262.8189,326.61417 45.77585,19.96368" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path123"        d="m 307.93448,348.09186 4.82001,0.30011 -3.49945,-3.32813 z" />     <path        style="fill:#000000;fill-opacity:0;fill-rule:nonzero"        id="path125"        d="m 381.71652,326.61417 -32.28345,22.36221" />     <path        style="fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round"        id="path127"        d="m 381.71652,326.61417 -27.35117,18.94571" />     <path        style="fill:#595959;fill-rule:evenodd;stroke:#595959;stroke-width:1;stroke-linecap:butt"        id="path129"        d="m 353.42484,344.20206 -2.79001,3.94189 4.67105,-1.22628 z" />   </g> </svg> 
 +</html> 
 + 
 + 
 +===== Range ===== 
 +  - ''<rev>'' - ancestors of commit revision 
 +  - ''^<rev>'' 
 +  - ''<rev1>..<rev2>'' - reachable from rev2 but exclude reachable from rev1 (none is HEAD) 
 +  - ''<rev1>...<rev2>'' - reachable from either but not both (none is HEAD) 
 +  - more ... 
 + 
 +http://stackoverflow.com/questions/7251477/what-are-the-differences-between-double-dot-and-triple-dot-in-git-dif 
 +===== Reflog ===== 
 +"Log of references" - list of updates to the references 
 + 
 +''git reflog''
  
 ===== Diff ===== ===== Diff =====
 +Show difference between working directory (or index if ''--cached'') and commited.
  
 +===== Merge-Base =====
  
 ===== Debugging with Git ===== ===== Debugging with Git =====
  
-| ''blame'' +| ''blame''Line-by-line who last modified line 
-| ''grep'' | | +| ''grep''Search files for given expression 
-| ''bisect'' | |+| ''bisect''Manually switch between commits until the one that introduces a chenge is found |
  
  
 ===== References ===== ===== References =====
 +https://github.com/MaciejKucia/git_tree
 +
   * http://gitref.org/inspect/   * http://gitref.org/inspect/
   * https://www.atlassian.com/git/tutorials/inspecting-a-repository/   * https://www.atlassian.com/git/tutorials/inspecting-a-repository/
   * https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html   * https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
 +  * https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection
   * https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History   * https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
   * https://git-scm.com/book/en/v2/Git-Commands-Inspection-and-Comparison   * https://git-scm.com/book/en/v2/Git-Commands-Inspection-and-Comparison
   * https://git-scm.com/book/en/v2/Git-Commands-Debugging   * https://git-scm.com/book/en/v2/Git-Commands-Debugging
   * http://www.sbf5.com/~cduan/technical/git/git-1.shtml   * http://www.sbf5.com/~cduan/technical/git/git-1.shtml
 +  * http://web.mit.edu/nelhage/Public/git-slides-2009.pdf
 +  * http://stackoverflow.com/questions/7251477/what-are-the-differences-between-double-dot-and-triple-dot-in-git-dif
  
   * https://git-scm.com/docs/git-status   * https://git-scm.com/docs/git-status
Line 45: Line 96:
   * https://git-scm.com/docs/git-hash-object   * https://git-scm.com/docs/git-hash-object
   * https://git-scm.com/docs/git-cat-file   * https://git-scm.com/docs/git-cat-file
 +  * https://git-scm.com/docs/git-rev-parse
 +  * https://git-scm.com/docs/git-reflog
projects/progit/inspection.1454797423.txt.gz · Last modified: 2016/02/06 23:23 by mkucia