git stash

git stash temporarily shelves your uncommitted changes so you can switch tasks with a clean working directory, then bring them back later with git stash pop.