How can I fix 'Push Rejected: Git LFS objects missing' on GitHub?
‘Push Rejected: Git LFS objects missing’ usually occurs if files are tracked by Git LFS but haven’t been pushed to the LFS server. Re-upload them with Git LFS.
When you encounter ‘Push Rejected: Git LFS objects missing,’ it often indicates that certain files tracked by Git LFS haven’t been properly uploaded to the LFS server. First, verify that Git LFS is correctly installed and set up on your system (git lfs install
). Run git lfs ls-files
to confirm which files are being tracked, then use git lfs push origin main
to upload them to GitHub. This command ensures that all tracked objects are synchronized with GitHub, addressing the error. If issues persist, clearing the cache and re-pushing usually resolves any discrepancies in the tracked files.