Git stash reference
30 June 2022 (Updated 7 July 2022)
On this page
Use a tool like Sourcetree to make it easier to inspect stashes.
Stash changes
Record the current state of the working directory in a “stash”, and go back to a clean working directory.
git stash -u
List stashes
List all the stashes.
git stash list
Inspect stash
git stash show <stash>
The stash identifier (<stash>
) can be obtained from git stash list
. You can also shorten the identifier to just the index number:
git stash show 3
Apply stash
git stash apply <stash>
Sources
Tagged:
Git
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment