How to Delete a Pushed Commit in Github
To delete a pushed commit on Github, follow these steps:
- Go to your desired repository on GitHub.
- Select the 'Pull requests' tab.
- Locate the pull request that you want to undo a commit.
- Click 'Revert'. This will create a new commit that undoes the changes made by the specific commit.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it