question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there anyway to discard changes for multiple files?

See original GitHub issue

Description

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

  1. [First step]
  2. [Second step]
  3. [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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
JosephTLyonscommented, Jul 14, 2017

Yep, I knew you could discard all, curious to see if one day a way to choose multiple files will be implemented.

4reactions
iAmWillShepherdcommented, Jul 14, 2017

Yes, there is!

Just right-click on the header for the change list and select Discard all changes…

2017-07-14_10-19-08 942

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found