Last active
November 7, 2025 12:33
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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