How to Undo Commit Github
- George Apostolov
How to Undo Commit Github: step-by-step guide
In your 'Pull requests' tab, click on the request.
Find the commit you want to undo, click on it, and then click 'Revert'.
After reverting, it will create a new commit that undoes the changes made in the selected commit.
By following these steps, you can undo a commit by reverting the commit in Github.
Quick answer: To undo a commit in GitHub, open the pull request tab, select the specific request, click on the commit you want to undo, and click revert to create a new commit that removes those changes.
About this GitHub tutorial
Reverse unwanted changes on GitHub by selecting the target commit within a pull request and clicking revert to generate a new undo commit. This guide shows how to undo Commit Github in 4 steps, starting with "In your 'Pull requests' tab, click on the request" and finishing with "By following these steps, you can undo a commit by reverting the commit in Github". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to undo Commit Github?
4 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Upload a Folder to Github, How to Upload a Project to Github and How to Upload Jupyter Notebook to Github. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





