Tags and Stash
A tag names a commit such as v1.0.0. git stash saves uncommitted work and gives you a clean tree, and git stash pop brings it back.
Example
echo 1 > a.txt; git add .; git commit -q -m "release"
git tag v1.0.0
git tag
echo 2 >> a.txt
git stash -q
cat a.txt
git stash pop -q
cat a.txtResult
v1.0.0 1 1 2
Exercise
Bring back stashed work.
git stash Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.