How to "undo" or delete most recent commit via browser?

Hi all, I am a newbie to github: using it to track changes in simple text files. I primarily use in the browser.

I recently made a commit that I want to undo or delete, or otherwise revert back. I can’t seem to find any buttons with this action. I have tried selecting the file itself, or viewing the complete history of the repo. The best I found was the trash can button that will delete the file, but I’m not sure that I want that…

Hello @nam-matt,

As far as I know, it’s not currently possible to revert commits via the web interface, save for pull requests. You could always download GitHub Desktop and revert the commit that way, otherwise I’m afraid you’ll have to undo the changes by hand.

Thanks. I was afraid of there not being a web interface method. By “manual” do you mean via commandline? And yes, I am slowly acclimating myself with some gui frontends…

Ah no, I meant editing the files to undo the changes you made, then committing the updated files. But yes, you can use git revert via the command line to revert changes, too.

oh I see. yea that’s clunky. I could do that myself outside of github. So hmm let me see what’s the easiest way to do this.