Tsallaka zuwa abun ciki
Justice Tech School

Stashing Work

git stash saves unfinished changes and cleans the tree. git stash pop brings them back.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
echo two >> a.txt
git stash -q
git status -s | wc -l
git stash pop -q
git status -s

Result

0
 M a.txt

Exercise

Bring stash back.

git stash 

Quiz Test

What does stash save?

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