Created
January 8, 2021 06:04
-
-
Save MS-Jahan/081efeb6ebf71bc215e0600de966629d to your computer and use it in GitHub Desktop.
Change (revert) back to previous commit without commit history
This file contains hidden or 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
| git reset --hard <commit_hash> | |
| git push origin main --force # --force is important here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment