git stash then switch branch checkout stashed changes code example Example: git stash clean command git stash clear