IssueRaiser

Stash specific file/s or stash selected files

### Describe 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. ![image](https://user-images.githubusercontent.com/26509613/106894435-aa985f80-66f7-11eb-95b0-52df7f150d49.png) 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. ![image](https://user-images.githubusercontent.com/26509613/106894672-f21eeb80-66f7-11eb-83d7-54f223f6bb00.png)

Posted by ms-nc on Feb 4, 2021, 12:34 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

Stash specific file/s or stash selected files

ms-ncFeb 4, 2021, 12:34 PM

### Describe 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. ![image](https://user-images.githubusercontent.com/26509613/106894435-aa985f80-66f7-11eb-95b0-52df7f150d49.png) 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. ![image](https://user-images.githubusercontent.com/26509613/106894672-f21eeb80-66f7-11eb-83d7-54f223f6bb00.png)

Comments (0)

No comments yet. Start the discussion.

Comment on this issue