Git LFS suddenly stopped working on Windows10 machine #22138
-
Our small company is using Git with GitHub and GitHub Desktop and LFS since over a year now. Everything worked fine. Suddenly on one machine, git lfs is not recognised by git, when i try to push. Any help is highly welcome. Thx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Maxwell167! 👋 I’m not sure what caused the initial problem, but judging from your screenshot the large object has been committed to your regular Git history. Adding LFS tracking for a file that’s already been committed to the Git repo doesn’t automatically move it to LFS. You’ll need to first remove the file completely from the repository’s regular Git history, and then add it to LFS. You can remove the file from the history by following our guide: https://help.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository Alternatively, there is a migration tool that you can use which will migrate your files over to LFS without having to delete and re-add them: GitHubbozaro/git-lfs-migrateSimple project for convert old repository for using git-lfs feature - bozaro/git-lfs-migrate After that you can track and push it to LFS with these instructions: https://help.github.com/en/github/managing-large-files/configuring-git-large-file-storage |
Beta Was this translation helpful? Give feedback.
Hi Maxwell167! 👋
I’m not sure what caused the initial problem, but judging from your screenshot the large object has been committed to your regular Git history.
Adding LFS tracking for a file that’s already been committed to the Git repo doesn’t automatically move it to LFS. You’ll need to first remove the file completely from the repository’s regular Git history, and then add it to LFS. You can remove the file from the history by following our guide:
https://help.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository
Alternatively, there is a migration tool that you can use which will migrate your files over to LFS without having to delete and re-add them: