How To Use Git stash command in a very advanced way
Git Stash
For very long time, I'm using only two commands of git stash.
git stash
git stash pop
Fortunately, git stash has some useful commands also.
You can stash with a saving message with the command
git stash save "your message"
List all your stashes
git stash list
Apply the stash to a select repository
git stash apply stash@{n}
Pop specific stash from the stack
git stash pop stash@{n}
Show the summary of the latest or specific stash
git stash show
get stash show stash@{n}
Delete a specific stash
git stash drop stash@{n}
You can also stash untracked files
git stash save -u
Or clear stash
git stash clear