Skip to content

Instantly share code, notes, and snippets.

@sudotman
Last active November 7, 2025 12:33
Show Gist options
  • Select an option

  • Save sudotman/c848eb1dacbe4e53dba69e3b67416596 to your computer and use it in GitHub Desktop.

Select an option

Save sudotman/c848eb1dacbe4e53dba69e3b67416596 to your computer and use it in GitHub Desktop.
fixing lfs (should have a pointer but doesnt) issue where you can't discard/restore/stash your changes
git lfs uninstall
git reset --hard
git lfs install
git lfs pull
In case if this is not working (because this was not working for me), the following hack may work:
git rm --cached -r .
git reset --hard
git rm .gitattributes
git reset .
git checkout .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment