Remove Git LFS from the repository and restore image files (e.g., PNGs).
git lfs untrack *.png # Or any other formatgit lfs migrate export --everything --include="*"git lfs uninstallnano .gitattributes
git config --global --editgit add .gitattributes
git commit -m "Remove Git LFS"
git push origin main --force # Should be forced, branche 'main'If you are using a custom folder (e.g., /custom) for images, rename it to /assets,
Fix images headers using an image editor (e.g., Photoshop), and overwrite existing files.
git add *.png # Or any other format
git commit -m "Fix images headers"
git push origin main