Created
August 15, 2019 08:25
-
-
Save kisildev/41f9a9348e7949876d81a6d4cf42b7a5 to your computer and use it in GitHub Desktop.
How to delete a commit on Github (Git)
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
How to delete a commit on Github | |
1. We get the hash code of the commit that we want to return to. | |
2. Go to the repository folder and write to the console: | |
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a | |
$ git push --force |
Author
kisildev
commented
Aug 15, 2019
-
- https://www.shellhacks.com/ru/git-undo-last-commit/
-
- https://git-scm.com/book/ru/v1/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B-Git-%D0%9E%D1%82%D0%BC%D0%B5%D0%BD%D0%B0-%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment