1

I am building a static website and tried to upload a large video file thanks to Git LFS, but the commit/push never succeeded. After some change I decided to not upload this file and wanted to uninstall LFS. Now the object keeps uploading every-time I try to push on Github and I can not push any update. When I type "git push origin main", the LFS object uploading starts. It looks like it is stuck in the Git History. I tried to delete the repo, create a new one and push again, but same problem.

Any idea on the process to fix this issue ?

Thanks a lot for your help,

I'm available if you need more details

hbonnaf
  • 11
  • 2

1 Answers1

0

If, by pushing the same repository, the issue persists, check locally the content of that repository.

In particular, from "Simple steps to uninstall Git LFS from your repository", look for any .gitattributes file which would still have any LFS-related entry.

See also "Move Git LFS tracked files under regular Git"

git lfs untrack '<pattern>'
git add --renormalize .
git commit -m 'Restore file contents that were previously in LFS'

The OP hbonnaf adds in the comments:

I just used a radical solution that worked:

I fetched an old version of my code from my remote repo. T

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for this answer, I updated my answer above as this solution didnt work.. – hbonnaf Jan 25 '22 at 14:03
  • Okay - I just used a radical solution that worked, I fetched an old version of my code from my remote repo. Thanks for your help, really appreciated – hbonnaf Jan 25 '22 at 14:37
  • @hbonnaf OK. I have edited the answer to include your comment for more visibility. – VonC Jan 25 '22 at 16:11