How to Delete a Commit in Github
To delete a commit in Github, follow these steps:
- 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 delete a commit by reverting the commit in Github.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it