User Tools

Site Tools


git_cheat_sheet

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
git_cheat_sheet [2026/05/19 22:24] stephengit_cheat_sheet [2026/05/19 22:30] (current) – [Try Git] stephen
Line 167: Line 167:
 |  Stashing  | | |  Stashing  | |
 | ''<nowiki>gitk 'stash@{0}'</nowiki>'' | View the contents of the first stash. | | ''<nowiki>gitk 'stash@{0}'</nowiki>'' | View the contents of the first stash. |
 +| ''<nowiki>git diff stash</nowiki>'' | Shows differences between your current working tree and the most recent stash entry. |
 +| ''<nowiki>git diff stash@{0}</nowiki>'' | Shows differences against a specific stash entry (here, the latest one explicitly). |
 +| ''<nowiki>git diff --name-only stash</nowiki>'' | Lists only file names that differ between your working tree and the stash. |
 +| ''<nowiki>git diff stash -- path/to/file.cs</nowiki>'' | Shows differences against the stash for only the specified file. |
 +
  
  
git_cheat_sheet.txt · Last modified: 2026/05/19 22:30 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki