Reputation: 369
I have the problem that, in my repo, I have to upload an essential *.lm
dictionary file which is about 380mb of size.
It actually is tracked by git-lfs
and it also is being uploaded to git-lfs
. My problem is, that besides git-lfs
, git also uploads this file to the repo, so at the end it fails, because you can't upload files bigger than 100mb.
I already tried to clean my repo with bfg and git-lfs import
to migrate my repo to lfs. None of them worked, it still keeps uploading the files to both lfs
and the normal repo.
I really don't know what to do, it already worked in the history, now it does not anymore.
Upvotes: 0
Views: 143
Reputation: 427
Please see How to stop tracking and ignore changes to a file in Git?
In particular, you would need to remove the file from being tracked. What the answer in the link recommends is git rm --cached <file-name>
.
You would then need to add it to your .gitignore
Upvotes: 1