Skip to content

Instantly share code, notes, and snippets.

@n370
Created July 5, 2023 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n370/7a0a62a55709d5ef76506169d34faa29 to your computer and use it in GitHub Desktop.
Save n370/7a0a62a55709d5ef76506169d34faa29 to your computer and use it in GitHub Desktop.
useless_reset.sh
function hardreset() { \
git reset --hard $(git log --skip=$(expr $1 - 1) -1 --format=%h) \
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment