Skip to content

Instantly share code, notes, and snippets.

@smartdeal
Created June 13, 2018 12:32
Show Gist options
  • Save smartdeal/5d24089fbc06d910d4bb3a92593031e9 to your computer and use it in GitHub Desktop.
Save smartdeal/5d24089fbc06d910d4bb3a92593031e9 to your computer and use it in GitHub Desktop.
[Машина времени] #GIT
# Смотрим список последних коммитов во всех ветках,
# каждый из которых имеет вид `index HEAD@{index}`.
# Выбираем первый коммит перед нашим косячным
git reflog
# Используем всю магию машины времени
git reset HEAD@{index}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment