Created
December 17, 2022 11:45
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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