Quick summary
Reverting a commit in GitHub creates a new commit that undoes specific changes without rewriting your repository's history. This process is done entirely through the GitHub UI via the Pull Requests tab, making it safe for collaborative workflows.
Steps
- Go to your repository on GitHub.
- Select the Pull Requests tab from the repository navigation.
- Locate the pull request that contains the commit you want to revert.
- Click Revert to create a new commit that undoes the changes made by that specific commit.



