Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |
| git_cheat_sheet [2026/05/19 22:24] – stephen | git_cheat_sheet [2026/05/19 22:30] (current) – [Try Git] stephen |
|---|
| | 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. | |
| | |
| |
| |