Questions tagged [git-lfs]

Questions about Git Large File Storage. LFS extends Git (but is not itself Git); use this tag for git-lfs questions instead of the plain Git tag. Do not confuse this with the "Linux-from-scratch" LFS tag.

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/

971 questions
238
votes
23 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 (which deletes everything, including untracked directories and anything…
Kate Zz
  • 3,002
  • 5
  • 14
  • 17
178
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,806
  • 2
  • 12
  • 10
122
votes
6 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,535
  • 2
  • 12
  • 18
112
votes
2 answers

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,915
  • 14
  • 67
  • 104
103
votes
12 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
  • 8,641
  • 19
  • 55
  • 78
100
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
  • 42,413
  • 44
  • 197
  • 320
94
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,979
  • 10
  • 41
  • 69
90
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
  • 86,719
  • 67
  • 308
  • 465
79
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
  • 1,068
  • 1
  • 9
  • 12
78
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,619
  • 3
  • 12
  • 23
66
votes
5 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
  • 6,349
  • 5
  • 42
  • 75
60
votes
3 answers

How to add a single file to GIT LFS?

How can I add just a single file to GIT LFS? Most examples show adding a pattern that specifies which files to add to LFS. However, I wish to add single file. If, for example, I do git lfs track "file.bin" this will track all files named file.bin…
user2746401
  • 3,157
  • 2
  • 21
  • 46
59
votes
10 answers

Git clone git-lfs filter-process: git-lfs: command not found

I'm trying to clone a project from git by this: git clone link And got this message remote: Enumerating objects: 24533, done. remote: Counting objects: 100% (24533/24533), done. remote: Compressing objects: 100% (5045/5045), done. remote: Total…
bao le
  • 927
  • 2
  • 7
  • 12
55
votes
5 answers

How do I disable git-lfs?

I have a repository on bitbucket that is using LFS. Since using it for some time, I've decided to move the repository back to a space under my control. The only reason I used LFS in the first place was to effectively double my repository size limit…
Shadow
  • 8,749
  • 4
  • 47
  • 57
53
votes
3 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
  • 19,637
  • 18
  • 83
  • 130
1
2 3
64 65