Reputation: 2127
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.
Upvotes: 21
Views: 25002
Reputation: 1835
Pretty old question, but in the latest version of GIT Extensions, the "Manage Stashes" window accessible from the Commands menu has 2 buttons.
The second one does the job. Pretty obvious in retrospect.
Upvotes: 15
Reputation: 4032
To add files to stash in GitExtensions: in the top menu click:
Commands
Stash changes
To retrieve stash using GitExtensions, use the same menu, which will now contain a history of stash, select the file(s) you want to retrieve and then click 'Apply Selected'
Upvotes: 5
Reputation: 1323363
In command line, you would:
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.
Upvotes: 10