Skip to content

Instantly share code, notes, and snippets.

@startergo
Created October 15, 2023 14:15
Show Gist options
  • Save startergo/53e9cd031fb4fb1153503f08b4c6181d to your computer and use it in GitHub Desktop.
Save startergo/53e9cd031fb4fb1153503f08b4c6181d to your computer and use it in GitHub Desktop.
Reset clone to specific Git commit id
  • Look at the git log:
git log -n 5 --oneline
  • Pick up a commit id and reset:
git reset --hard 'commit id'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment