Git Stash Specific Files

To stash specific files, and not all changed files do the following:

  1. Stage the files you don’t want to stash
  2. Run git stash save --keep-index
©️ 2024