How can I undo discard changes in GitHub Desktop?

Franck Dernoncourt picture Franck Dernoncourt · Feb 22, 2016 · Viewed 37.6k times · Source

Is there any way to undo discard changes in GitHub Desktop, after the Undo button has disappeared?

enter image description here

I am talking about GitHub Desktop's undo feature, not git in general.

Answer

chrismarx picture chrismarx · May 8, 2018

As of 5/8/18, and if you're using the latest version of github desktop or github desktop beta, uncommitted discarded changes are now copied over as new files and put into your trash/recycling bin.

This is what the current prompt looks like:

enter image description here