# How to Delete a Pushed Commit in Github

> To delete a pushed commit in GitHub, navigate to your repository and select the Pull requests tab. Locate the desired pull request containing the commit you wish to undo, then click Revert to generate a new commit that automatically reverses the previous changes.

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

## Steps

1. Go to your repository on GitHub.
2. Select the 'Pull requests' tab.
3. Locate the pull request that you want to undo a commit.
4. Click 'Revert'. This will create a new commit that undoes the changes made by the specific commit.
