Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ichinya/87f22d012d7693b578c597bc67a2fcf3 to your computer and use it in GitHub Desktop.
Save Ichinya/87f22d012d7693b578c597bc67a2fcf3 to your computer and use it in GitHub Desktop.
Как удалить commit в Github
#1. Получаем хэш-код коммита, к которому хотим вернуться.
#2. Заходим в папку репозитория и пишем в консоль:
# $ git reset --hard ХЭШ-КОМИТА
# $ git push --force
# Или
$ git reset --hard HEAD~1
$ git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment