Forked from vorozhba/Как удалить commit в Github.txt
Last active
September 23, 2022 19:54
-
-
Save ipanin/9ab85aaeace415716531864649ab540b to your computer and use it in GitHub Desktop.
Как удалить commit в Github
This file contains hidden or 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
1. Получаем хэш-код коммита, к которому хотим вернуться. Список последних 4х коммитов: | |
$ git log -4 | |
2. Заходим в папку репозитория и пишем в консоль: | |
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a | |
$ git push --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment