Created
January 15, 2019 03:24
-
-
Save 8bu/6fe9c571a3afdd2c50081baaced05d5a to your computer and use it in GitHub Desktop.
delete a commit you accidentally pushed into github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard <prev_commit_id> | |
git push --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment