Stash specific file/s
See original GitHub issueDescribe the feature or problem you’d like to solve
Currently, stashing uncommited changes in files can be done be in the Branch
tab.
This only allows stashing all changed files.
Would be really handy to allow selecting which files to stash.
Cases like bringing changes with you to a different branch,
but only needing some changes, come to mind.
Proposed solution
When compared to available capabilities to discard changes.
You can also selectively discard changes on specific files.
My idea is to add another option in the context menu to stash
(Text being something along the line of Stash changes
).
Allowing stashing of single/multiple changed files.
Behind the scenes would probably apply the command
git stash push [FILE PATH] [...ADDITIONAL FILE PATHS...]
Visual representation wise,
there is currently the popped up footer with the stashed changes, which could simply add to it files if any more files are selectively stashed.
With the same functionality to restore or discard everything in the stash.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:30
- Comments:11
Top GitHub Comments
It would be great if we could stash not only the selected files, but only the selected chunks/lines inside those files, since this partial selection is already available for committing.
Thanks!
+1 For this. Im a long time user of GitHub desktop and this really becomes useful when trying to move branches around.