Two handy tools for everyday Git work: stash for temporarily setting aside changes, and tags for marking specific points in history.


Stashing work in progress

If you need to switch branches but aren't ready to commit, stash temporarily saves your uncommitted changes so your working directory is clean, ready to bring back later.

Restoring a stash

When you're ready to continue, popping the stash reapplies your saved changes exactly where you left off.

Tagging releases

Tags mark a specific commit as significant, most commonly used for version releases like v1.0.0, making it easy to find and return to exact release points later.

>_ COMMANDS YOU'LL USE
git stashTemporarily save uncommitted changes
git stash listView all saved stashes
git stash popReapply the most recent stash and remove it from the list
git tag v1.0.0Mark the current commit with a version tag
git push origin v1.0.0Push a tag to GitHub
💡Stashes are easy to forget about — run git stash list occasionally so saved work doesn't get lost.
⚠️Common mistake: Losing stashed changes