Questions tagged [git-lfs]

Questions about Git Large File Storage.

An open source Git extension for versioning large files.

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git lfs

https://git-lfs.github.com/

683 questions
125
votes
2 answers

Git LFS track folder recursively

Is it possible to track recursively all files contained in a folder and its subfolders with Git LFS ? I would like to do something like this : git lfs track myfolder/*
csa
  • 1,277
  • 2
  • 8
  • 8
92
votes
17 answers

Git error: Encountered 7 file(s) that should have been pointers, but weren't

How to clean repo, if staged files marked as modified? After git reset --hard I get Encountered 7 file(s) that should have been pointers, but weren't: Running git clean -fdx doesn't help, either.
Kate Zz
  • 1,442
  • 3
  • 11
  • 16
84
votes
5 answers

Move Git LFS tracked files under regular Git

I have a project where I stored video files with Git LFS. Now I ran into some complications with my build server that doesn't yet support Git LFS. As it's an external service, I can't really affect the build process, and thus would want to move the…
Olli Niskanen
  • 1,155
  • 1
  • 9
  • 18
75
votes
1 answer

Where are git-lfs files stored?

I am trying to figure out how to use git-lfs. I use a gitlab EE server. Maybe I missed something, but I failed to find any documentation on git-lfs beyond very short tutorial introducing the "track" command and cute 1 minute videos. For example, I…
Vince
  • 3,251
  • 8
  • 28
  • 57
60
votes
1 answer

Git (LFS): what is locking support? And should I enable it?

"New" Git Comment: Just today I ran across the following comment from Git for the first time (at least the first time I saw it): Mikes-Mac$ git push Locking support detected on remote "origin". Consider enabling it with: $ git config…
Mike Williamson
  • 4,525
  • 11
  • 52
  • 81
59
votes
2 answers

How do Git LFS and git-annex differ?

git-annex has been around for quite some time, but never really gained momentum. Git LFS is rather young and is already supported by GitHub, Bitbucket and GitLab. Both tools handle binary files in git repositories. On the other hand, GitLab seems to…
Stefanus
  • 1,381
  • 3
  • 10
  • 22
54
votes
1 answer

What is the advantage of git lfs?

Github has a limit on push large file. So if you want to push a large file to your repo, you have to use Git LFS. I know it's a bad idea to add binary file in git repo. But if I am using gitlab on my server and there is no limit of file size in a…
Sanster
  • 798
  • 6
  • 12
45
votes
2 answers

How to clone/pull a git repository, ignoring LFS?

Is there a way to explicitly ignore all git-lfs files on clone and pull?(besides uninstalling git-lfs which I ended up doing). In this case git-lfs just contains pre-compiled libs for a platform I don't use... so there is absolutely no use in…
ideasman42
  • 30,245
  • 24
  • 136
  • 249
42
votes
3 answers

How to delete a file tracked by git-lfs and release the storage quota?

How to delete a never-use-again file and release the storage back to the github lfs quota? Does deleting the reference point of the file in git history work in this situation?
lucemia
  • 5,677
  • 4
  • 36
  • 71
41
votes
1 answer

Disable Git LFS for a remote

I'm trying to push to a second remote that doesn't support Git LFS. Is there a way to disable Git LFS for a specific remote using git config?
amiuhle
  • 2,505
  • 17
  • 28
38
votes
9 answers

Git lfs - "this exceeds GitHub's file size limit of 100.00 MB"

I have some csv files that are larger than github's file size limit of 100.00 MB. I have been trying to use the Git Large File Storage extension. https://git-lfs.github.com/ From LFS - "Large file versioning- Version large files—even those as large…
LearningSlowly
  • 5,451
  • 12
  • 44
  • 71
37
votes
2 answers

How large does a "large file" have to be to benefit from Git LFS?

I'm reading about Git LFS and see time and again that it works great for "large files" Git Large File Storage (LFS) replaces large files such as audio samples, videos[...] Version large files—even those as large as a couple GB in size—with…
Thunderforge
  • 17,419
  • 14
  • 73
  • 117
37
votes
2 answers

How to use GIT LFS to track iOS frameworks?

I want to track my frameworks with lfs by a smart way. So this is my setting for git lfs: *.framework/Versions/A (.gitattributes) */*.framework/Versions/A (.gitattributes) */{*.framework}/Versions/A (.gitattributes) But it doesn't work. When I run…
vietstone
  • 7,980
  • 15
  • 47
  • 71
33
votes
1 answer

How can I tell if a file will be uploaded to git lfs correctly?

I'm trying to add everything under MyProject/Frameworks/ to git-lfs (large file storage). I'm not sure what the proper format for matching all files and folders recursively under the Frameworks folder is. This answer says the proper format is git…
Senseful
  • 73,679
  • 56
  • 267
  • 405
31
votes
1 answer

How well does Git LFS handle small files?

Is there a best practice for the type files stored in Git LFS? Specifically for the minimum size? For instance, a 10mb music file would be a obvious fit, but what about a 25kb png? Is it worth putting in LFS or it better to just let Git handle…
James McMahon
  • 45,276
  • 62
  • 194
  • 274
1
2 3
45 46