Introduction
Sometimes you want to save only some changes in your project temporarily without committing them. Git stash lets you do this, and you can choose to stash just specific files instead of everything.
When you are working on multiple files but want to save changes only from one file to switch branches quickly.
When you want to test something else but keep some file changes safe without committing.
When you accidentally modified files but want to stash only a few before running a build or test.
When you want to share your work but keep some changes private temporarily.
When you want to clean your working directory but keep some changes saved for later.