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 -sResult
0 M a.txt
Exercise
Bring stash back.
git stash Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.