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.
git-lfs
1,019
questions
271
votes
24
answers
214k
views
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 ...
189
votes
2
answers
90k
views
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/*
138
votes
6
answers
70k
views
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 ...
123
votes
2
answers
105k
views
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". ...
113
votes
3
answers
87k
views
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 ...
112
votes
13
answers
160k
views
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 ...
99
votes
1
answer
37k
views
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" ...
98
votes
1
answer
79k
views
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 ...
86
votes
1
answer
24k
views
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 ...
84
votes
10
answers
79k
views
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 ...
81
votes
2
answers
15k
views
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 ...
74
votes
5
answers
65k
views
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?
64
votes
3
answers
55k
views
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 "...
63
votes
6
answers
65k
views
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 ...
60
votes
2
answers
78k
views
Pull ALL files from git LFS
Is it possible to locally cache ALL files in a git-LFS repo for offline use? That is, make the repo usable like a normal git repo, even without an internet connection to fetch git-LFS files?
60
votes
3
answers
21k
views
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 ...
54
votes
1
answer
16k
views
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?
47
votes
4
answers
47k
views
Git LFS: Get the complete list from the whole repository
I have only found git lfs ls-files but this command give only the list from a specific ref.
There is a way to have the whole list of LFS object from a Git repository?
45
votes
2
answers
22k
views
What does "Filtering content" mean when doing a git clone?
I cloned a git repo and noticed a status line Filtering content which was very slow. This doesn't usually appear. What is it?
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (30/...
45
votes
1
answer
40k
views
How to convert a file tracked by git to git-lfs?
How do I convert a single file (e.g. a png) which is already committed as a regular object to git-lfs?
I do not want to migrate the whole repo and I also do not want to rewrite the history of the ...
44
votes
1
answer
8k
views
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 ...
42
votes
2
answers
8k
views
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 (...
41
votes
8
answers
75k
views
This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access
H!
I installed LFS in my github repository to track my *.csv files but when someone else tried to upload other csv and I wanted to make the pull of my repository this was the result
This repository is ...
41
votes
3
answers
84k
views
git lfs clone vs git clone
If I have git lfs installed on the client and I run:
git clone
is this equivalent to
git lfs clone
or will different results occur?
Thank you!
The answer to this question:
Can one clone a ...
41
votes
3
answers
9k
views
How to specify where Git LFS files will be stored?
I was just wondering if anyone could clear up some confusion I have about using Git Large File Storage.
When creating your new repository, I know how to track certain files with git lfs track, but ...
39
votes
2
answers
92k
views
Smudge error: Error downloading
I'm not sure if this is the right forum to discuss git-lfs but as we have a tag for it I'll post my question. I have read the "Troubleshoot Git LFS in Bitbucket" page.
I'm getting the following error ...
38
votes
1
answer
17k
views
Github actions actions/checkout@v2 lfs: true flag not converting pointers to actual files
This is my github actions yml file:
name: CI
on: [pull_request]
jobs:
build_ios:
name: Set up
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [self-hosted]
node-...
36
votes
5
answers
42k
views
Git LFS refused to track my large files properly, until I did the following
Problem
I had troubles trying to use git LFS, despite the many suggestions here on SO, on Git and GitHub's documentation, and on some Gists I'd run across.
My problem was as follows:
After ...
36
votes
4
answers
44k
views
"git: 'lfs' is not a git command" on macOS
LFS git: 'lfs' is not a git command. See 'git --help'.
I am facing this issue on macOS. The git lfs command is working fine from the Terminal. But when I am running this command from some script it ...
35
votes
2
answers
10k
views
Difference between git-lfs and dvc
What is the difference between these two? We used git-lfs in my previous job and we are starting to use dvc alongside git in my current one. They both place some kind of index instead of file and can ...
34
votes
3
answers
94k
views
Git pull - smudge filter lfs failed
I'm attempting to pull code onto our server from Github (git pull origin master).
This worked before. However, now, I'm receiving the following error:
$ git pull origin master
From github.com:org-...
31
votes
4
answers
33k
views
Git LFS give x509: certificate signed by unknown authority
I have just setup an Ubuntu 18.04 LTS Server with Gitlab following the instructions from https://about.gitlab.com/install/#ubuntu.
I have issued a ssl certificate from GoDaddy and confirmed this ...
28
votes
3
answers
46k
views
What does git lfs migrate do?
I thought that git lfs migrate rewrote the history of a repo so that specified large files were kept in LFS. This means that the repo should get smaller, because it doesn't directly contain all ...
25
votes
3
answers
7k
views
Duplicating a git repository and its GIT-LFS settings
I've duplicated a repo into a newer repo but when doing a git clone on the new repo it's unable to download the files using the LFS pointers and I get an error when smudge is used...
e.g... "Error ...
24
votes
4
answers
18k
views
How to use Git LFS with Azure Repos and Pipelines
I have a project using Git LFS in Azure Repos with several binary image files being checked in using Git LFS. When my Azure Pipelines build performs a git pull, the image files are not pulled from Git ...
24
votes
3
answers
11k
views
Can I exclude some files from git-lfs?
I created a repo with some image files. I have .gitignore and .gitattributes that I want to exclude from lfs. So I need to track all files by lfs but not .gitignore and .gitattributes.
I' m using ...
24
votes
3
answers
21k
views
Is it possible for git lfs pull to ignore some files / folders?
Short question:
Is it possible to configure git such that regular git pull will ignore some files?
Problem description:
I have a repository that includes some large data files (stored using git lfs)
...
23
votes
1
answer
16k
views
What is the difference between `git lfs fetch`, `git lfs fetch --all`, and `git lfs pull`?
Despite having used git for years, I find git lfs (git Large File Storage) to be pretty confusing to use, even at a very basic level. Can someone explain the difference between these 3 commands?:
git ...
23
votes
2
answers
43k
views
Error when getting git LFS files: Object does not exist on the server: [404] Object does not exist on the server
I downloaded and installed Git Large File Storage. Now I'm trying to get lfs files from the existing repository in github (not mine).
I tried:
git lfs clone https://github.com/xxx/xxx
then in my local ...
23
votes
2
answers
10k
views
Is it possible to diff lfs files in git?
When I look at the diff of an lfs file, I just see the oid and size difference. Is there a way to easily diff the actual file contents?
22
votes
3
answers
17k
views
Reset git lfs repository to pointers
I have a git LFS repository checked out. All the binaries are pointers. I pulled the real binaries with:
git lfs pull --include some/binaries
I used the binaries and now I would like to "unpull&...
22
votes
2
answers
19k
views
How to setup a git lfs server at home?
I am making use of git lfs for storage of large files in a github repository. The only problem is that there is a quota for git lfs; specifically you can only store 1 GB and only stream (download) 1 ...
21
votes
3
answers
46k
views
Fail to clone repository with git lfs
My repo uses git lfs. For a fresh clone, I ran:
git lfs install
git clone https://example.com/repo.git
The clone gets to the point where it starts downloading lfs files, gets to some file and then ...
21
votes
1
answer
14k
views
git lfs "objects" taking a lot of disk space
I have a project with a lot of binaries (mostly pdfs) that I'm using git-lfs with. The project is about 60mb but I found that my .git/lfs/objects director is about 500mb. I presume these are cached ...
21
votes
1
answer
26k
views
How do I clone a repository that includes Git LFS files?
On my Ubuntu system, I installed Git LFS as well as Git, and cloned a repo that has some of its files managed by Git LFS. But those files didn't download, other than a marker file. (I didn't realize ...
18
votes
3
answers
13k
views
How to get a direct link to a file in github LFS (large file storage)?
I uploaded a large file to gitub using Git LFS (Large file storage).
At first I could download the file from a direct link.
raw.githubusercontent.com/userName/reposiotry/master/file.mp4
But on the ...
17
votes
2
answers
12k
views
Git LFS - how to track multiple file types with one command
I see this command listed on the Git LFS website and documentation:
git lfs track "*.psd"
I have several file types in my project that I want to track with LFS, and will want to track all these same ...
17
votes
3
answers
12k
views
Can one clone a Git LFS repo without installing Git LFS?
When using Git LFS to push large files to git repository, can a user which does not have git-lfs installed on its system clone it without any additional setup?
17
votes
1
answer
7k
views
Configure git-lfs to track files above some size
I have a git repository with git-lfs installed and I would like to have all PDF files above some size in LFS, but not all PDF files, as git-lfs supports. The reason for this is that I have many tiny ...
16
votes
2
answers
9k
views
Force push a git lfs file ID
Using git lfs, how can I force push a file ID that I know I have locally but that for some reason did not get pushed to the server ?
ie, on my build system I have errors like
Git LFS: (0 of 15 ...