What does `git stash` do?

BeginnerConceptGit
Answer

It shelves uncommitted changes and cleans the working tree. Get them back with git stash pop, and use git stash -u to include untracked files.

All Real-World Interview questions Roadmap: Interview readiness

More on Git