Stash with a message
Save uncommitted work, including untracked files, under a clear label
git stash push -m 'WIP: feature-x' -u
More git commands
-
git stash pop stash@{2}Apply a specific stash entry and remove it from the list
-
git bisect start && git bisect bad HEAD && git bisect good <good-sha>Run a binary search through history to find where a regression started
-
git worktree add ../feature-branch feature/my-featureCheck out a branch in a separate directory, no stash needed
-
git submodule update --init --recursiveInitialize and update all submodules, including nested ones
-
git show <sha>:path/to/filePrint a file's content as it was in an older commit