CLion 2016.1 Help

Stashing and Unstashing Changes

Stashing

Sometimes it may be necessary to revert your working copy to match the HEAD commit but you do not want to lose the work you have already done.
This may happen if you learn that there are upstream changes that are possibly relevant to what you are doing or if you need to make some urgent fixes.

Stashing involves recording the difference between the HEAD commit and the current state of the working directory (stash).
Changes to the index can be stashed as well.