Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active February 27, 2022 18:19
Show Gist options
  • Save remlapmot/cb5a415b08e8866b1bc0bb77de6926d5 to your computer and use it in GitHub Desktop.
Save remlapmot/cb5a415b08e8866b1bc0bb77de6926d5 to your computer and use it in GitHub Desktop.
Use if discard changes in GitHub Desktop fails
git rm --cached -r .
git reset --hard
@remlapmot
Copy link
Author

From here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment