You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often find myself wishing for more granularity in discarding changes. Right now you can either discard changes file by file or discard them all. It would be nice to have a second option when right-clicking the header such as "Discard selected changes...", where it would discard only changes from the selected files in the list.
Version
GitHub Desktop version: 0.8.0
OS version: Microsoft Windows [version 10.0.15063]
Reacted by Erik Montes, hongleng, David Martinez, singha and ajtruckle
It would be nice to have a second option when right-clicking the header such as "Discard selected changes...", where it would discard only changes from the selected files in the list.
This is currently where "Discard All Changes" resides:
I think this belongs as part of #1712 because the real limitation at the moment is the fact that multiple files cannot be selected. I think if you can select multiple files then having "Discard Changes" in the context menu feels more discoverable than the header approach.
@shiftkey: considering you can select (toggle) files using the checkboxes, why not simply use that for "Discard selected files..." from the header menu?
How can I discard the files that are ONLY SELECTED? I find myself trying do discard several files, but at the same time I also want to keep some. In the old Github desktop app, I remember I could do it.
Example:
I have 5 files with changes. I want to only discard 3 files and keep the other 2 intact. If I select only the 3 files and click on Discard All changes, it prompts to discard everything instead of just offering to discard the 3 selected files.
Is this possible or am I just using it wrong?? Thanks!
Activity
shiftkey commentedon Aug 17, 2017
@rthery thanks for the feedback!
This is currently where "Discard All Changes" resides:
I think this belongs as part of #1712 because the real limitation at the moment is the fact that multiple files cannot be selected. I think if you can select multiple files then having "Discard Changes" in the context menu feels more discoverable than the header approach.
@rthery I've added this comment to that issue.
rthery commentedon Aug 17, 2017
Sounds good, thank you @shiftkey!
varkor commentedon Apr 11, 2018
@shiftkey: considering you can select (toggle) files using the checkboxes, why not simply use that for "Discard selected files..." from the header menu?
amerikan commentedon Oct 2, 2018
How can I discard the files that are ONLY SELECTED? I find myself trying do discard several files, but at the same time I also want to keep some. In the old Github desktop app, I remember I could do it.
Example:
I have 5 files with changes. I want to only discard 3 files and keep the other 2 intact. If I select only the 3 files and click on Discard All changes, it prompts to discard everything instead of just offering to discard the 3 selected files.
Is this possible or am I just using it wrong?? Thanks!
Using: v1.4.1
Update: adding screenshot
j-f1 commentedon Oct 2, 2018
You have to use Cmd/Ctrl/Shift+click to select multiple files (not the checkbox, the whole row), then choose “Discard X files.”
amerikan commentedon Oct 2, 2018
@j-f1 pretty counter intuitive way to do it, alas it worked so thanks.
ionut-sultana commentedon Apr 19, 2021
@j-f1 Thanks!
ajtruckle commentedon Feb 28, 2025
What about ability to discard changes to a selected set of lines or code? Possible?