Skip to content

Instantly share code, notes, and snippets.

@thebigdatajedi
Created December 17, 2022 11:45
Show Gist options
  • Save thebigdatajedi/1a515886b716156979a237abc656fb3d to your computer and use it in GitHub Desktop.
Save thebigdatajedi/1a515886b716156979a237abc656fb3d to your computer and use it in GitHub Desktop.
This an explanation to what you get with git reset hard and how to do it. My bias is that if I'm having absolutely to do a reset this is the reset I do.
If you reset --hard, it will make your local code and local history be just like it was at that commit: <commit hash>
git reset --hard <commit hash>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment