Is there anyway to discard changes for multiple files?
See original GitHub issueDescription
I could be missing something, but I’ve always wanted to be able to discard changed across multiple files without having to right click and choose the option for each file. Is there any way to batch discard changes?
Version
GitHub Desktop version: [0.6.2]
OS version: [version here]
Steps to Reproduce
- [First step]
- [Second step]
- [and so on]
Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Reproduces how often: [What percentage of the time does it reproduce?]
Logs
Additional Information
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Git discard changes to multiple files with glob - Stack Overflow
The phrase discard unstaged changes suggests that you would like to copy the staged versions back into the work-tree.
Read more >How to Discard Changes in Git | Learn Version Control with Git
If you want to undo all of your current changes, you can use the git restore command with the "." parameter (instead of...
Read more >How to discard your local changes in Git example
Git reset doesn't discard all local changes. The git reset –hard command will revert uncommitted changes that exist in files that have been ......
Read more >Undo possibilities in Git - GitLab Docs
Undo staged local changes · Confirm that the file is staged (that you used git add <file> ) by running git status :...
Read more >Check out, check in, or discard changes to files in a ...
When you finish editing and check the file back into the library, other people can see your changes and edit the file, if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, I knew you could discard all, curious to see if one day a way to choose multiple files will be implemented.
Yes, there is!
Just right-click on the header for the change list and select Discard all changes…
As of right now, there is no way to select the files you want to reset though. Created issue #2248 to track this use-case.