Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 4 and Version 5 of GitCheatSheet


Ignore:
Timestamp:
2017-11-21T13:36:07Z (19 months ago)
Author:
Jiri Svoboda
Comment:

Printing staged and unstaged changes

Legend:

Unmodified
Added
Removed
Modified
  • GitCheatSheet

    v4 v5  
    3535git show REVISION:path/to/file
    3636}}}
     37
     38== Priting only unstaged changes ==
     39{{{
     40git diff
     41}}}
     42
     43== Priting only staged changes ==
     44{{{
     45git diff --cached
     46}}}
     47
     48== Priting both staged and unstaged changes ==
     49{{{
     50git diff HEAD
     51}}}