Remove Git LFS from the repository and restore image files (e.g., PNGs).
git lfs untrack *.png # Or any other format
git lfs migrate export --everything --include="*"
git lfs uninstall
nano .gitattributes
git config --global --edit
git 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