Tsallaka zuwa abun ciki
Justice Tech School

Stash List and Names

Name stashes with push -m and list them. apply keeps the stash.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
echo two >> a.txt
git stash push -q -m 'wip one'
echo three >> a.txt
git stash push -q -m 'wip two'
git stash list | sed 's/^[^:]*: //' | sed 's/^On main: //'

Result

wip two
wip one

Exercise

Name a stash.

git stash push  "name"

Quiz Test

Which keeps the stash after applying?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.