Skip to content

Instantly share code, notes, and snippets.

@SoleeL
Created January 5, 2023 15:33
Show Gist options
  • Save SoleeL/125ee69ee8f5b0f139f9d5e5253ed4b1 to your computer and use it in GitHub Desktop.
Save SoleeL/125ee69ee8f5b0f139f9d5e5253ed4b1 to your computer and use it in GitHub Desktop.
Remove and revert uncommitted Git changes

The commands to discard all local changes in Git are:

git reset –hard
git clean -fxd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment