Demonstrate how to use stash
# stash
git stash push -m stash-my-file ./my-file.txt
# unstash
git restore --source=stash@{0} -- ./my-file.txt
# list the stashes
git stash list
# show the patch diff of the stash
git stash show --patch 0
git stash show --patch 1
# show stashes with untracked files
git stash show -u --patch 0
# create stash
git stash
# create single file stash
git stash push -m "adding stash readme" 36_git/sections/STASH.md
# add unindexed file
git stash push -u -m "adding readme" 55_dotsourcing/README.md
# include untracked
git stash -u
# pop, apply and remove from list
git stash pop 0
# apply and retain on list
git stash apply 0