Skip to content

Instantly share code, notes, and snippets.

@FlameWolf
Created April 16, 2024 04:37
Show Gist options
  • Save FlameWolf/8c1b2877a67dc032393dbb18729e0001 to your computer and use it in GitHub Desktop.
Save FlameWolf/8c1b2877a67dc032393dbb18729e0001 to your computer and use it in GitHub Desktop.
Revert to a previous commit discarding all changes made afterwards
git reset --hard [Commit-SHA-Id]
git push origin [Branch-Name] --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment