Skip to content

Instantly share code, notes, and snippets.

@ediblecode
Created January 7, 2020 13:07
Show Gist options
  • Select an option

  • Save ediblecode/e20c8602951dcca5e8dab18ed634298b to your computer and use it in GitHub Desktop.

Select an option

Save ediblecode/e20c8602951dcca5e8dab18ed634298b to your computer and use it in GitHub Desktop.
Reset git repo
# Reset a git repo, for example if you've changed line endings in gitattributes
git rm --cached -r . && git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment