Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save milkamil93/d0a2fcd939df8539f3d99c69e63d6f4c to your computer and use it in GitHub Desktop.
Save milkamil93/d0a2fcd939df8539f3d99c69e63d6f4c to your computer and use it in GitHub Desktop.
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
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