Skip to content

Instantly share code, notes, and snippets.

@hexium310
Created December 10, 2021 17:10
Show Gist options
  • Save hexium310/decbaadee21a165bf0bde84131d6a6b0 to your computer and use it in GitHub Desktop.
Save hexium310/decbaadee21a165bf0bde84131d6a6b0 to your computer and use it in GitHub Desktop.
git revert $(git log --oneline | nl >&2; read -p '> ' num; git log --format='%h' --skip=$((num - 1)) -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment