24

How can I discard all changes at once in GitHub Desktop? (I use it on Windows)

I used to do:

enter image description here

but can't see the option any more since GitHub for Windows upgraded itself silently (and changed its name to GitHub Desktop on the way).

I don't want to do it manually for each file one by one. I know I can use the git shell.

I use the latest version of GitHub Desktop, viz. 3.0.1.1.

Franck Dernoncourt
  • 62,576
  • 61
  • 286
  • 446

2 Answers2

56

I found it... now we need to right-click precisely on the "X changes" text in blue:

enter image description here

Thanks for the hide-and-seek.


On GitHub Desktop for Mac v2.17: Menu Bar > Repository > Discard Changes to Selected Files.

enter image description here


Related issues:

Franck Dernoncourt
  • 62,576
  • 61
  • 286
  • 446
4

This ought to be just a comment, but I thought a screenshot of current looks might be useful. So to add to Franck's excellent answer:

enter image description here

PatrickT
  • 8,058
  • 7
  • 59
  • 94