# How to Undo Commit Github

> 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.

Canonical: https://livedemo.ai/tutorials/how-to-undo-commit-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a5029ab56e05a00ffccfa/preview?step=1

## Steps

1. In your 'Pull requests' tab, click on the request.
2. Find the commit you want to undo, click on it, and then click 'Revert'.
3. After reverting, it will create a new commit that undoes the changes made in the selected commit.
4. By following these steps, you can undo a commit by reverting the commit in Github.
