sajad torkamani

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

Leave a comment

Your email address will not be published. Required fields are marked *