Sometimes, you need to switch branches but don’t want to commit unfinished work. Git Stash lets you temporarily save changes.
git stash)git stash pop)git stash list)git stash apply stash@{1})Task 16: Save your current work before switching branches.
git stash
git checkout main
Task 17: Retrieve stashed changes.
git stash pop