37

It is said in IDEA documentation

Select this check box to have IntelliJ IDEA bring the changes staged in the index to your working tree for examination and testing.

Can somebody please explain what does this mean?

humkins
  • 9,635
  • 11
  • 57
  • 75

1 Answers1

42

This determines if the stash is created with the git --keep-index flag.

From GIT docs:

If the --keep-index option is used, all changes already added to the index are left intact.

So in other words, any files you've added to git will also remain outside of the stash when you create it. Whereas normally newly added files would be removed after stashing. (See this question for a more indepth description of where the index is.)

Community
  • 1
  • 1
phaze0
  • 1,898
  • 17
  • 22
  • 7
    thus in the end your staged changes remain in your workspace *and* are saved into your stash – neural5torm May 21 '21 at 09:45
  • this is a good answer to review as well: "Checkout another branch when there are uncommitted changes on the current branch" : https://stackoverflow.com/a/22055552/401226 – Tim Richardson Jan 22 '22 at 00:15