Stash selected files with Git Extensions

Cincinnati Joe picture Cincinnati Joe · Mar 5, 2014 · Viewed 14.1k times · Source

Is there a way with Git Extensions to only stash some of the uncommitted files?

Say I have three files changed in the working dir (uncommitted) but I only want to stash 2 of them. FYI It doesn't seem to matter whether the uncommitted files are staged or not - when I use stash, they all get stashed.

Answer

VonC picture VonC · Mar 6, 2014

In command line, you would:

  • add to the index the files you don't want to stash
  • do a git stash save --keep-index, as mention in this answer or this one.

Since issue 479 of GitExtensions, you should be able to do the same, since there should be a checkbox to the stash form which appends '--keep-index' to the 'stash save' command.