Skip to content

Instantly share code, notes, and snippets.

@hrialan
Last active March 30, 2022 16:10
Show Gist options
  • Save hrialan/e1dc122f0bec17209f9003545767b17c to your computer and use it in GitHub Desktop.
Save hrialan/e1dc122f0bec17209f9003545767b17c to your computer and use it in GitHub Desktop.
[Github reset mistakes] Git command to overwrite local changes with a remote branch #git
git reset --hard origin/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment