How to revert to a previous commit?

Yes, it would, but there surely must be a way to discard changes. Is this Github’s desktop version we’re dealing with?
(I only just noticed the github logo in the upper left corner)
image
After a bit of research, it appears GitHub Desktop does not contain a simple discard changes feature, and is not well regarded. The recommended solution is to go into the command line and perform a git reset.
What I recommend is getting a better client. SourceTree is free, and contains the functionality you’re looking for. I use GitKraken which is free for public repos, and handles SSH much better, but they do charge you if you use it for private repos.

1 Like