28

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
  • 77,520
  • 72
  • 342
  • 501

2 Answers2

61

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

enter image description here


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

enter image description here


Related issues:

Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
  • I am having similar problem with the new version 0.8.0, I dint find "Discard changes to Selected Files" under Repository – Sunil Rao Sep 01 '17 at 10:53
  • I believe they have now removed the Discard Changes To Selected Files option from the Repository menu. Terrible. – saner Jan 30 '18 at 01:25
5

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
  • 10,037
  • 9
  • 76
  • 111