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
30
votes
3 answers

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-name/repo-name * branch master ->…
Jack
  • 303
  • 1
  • 3
  • 6
26
votes
3 answers

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 works with the Gitlab server. I have then updated…
EON CTO
  • 261
  • 1
  • 3
  • 4
26
votes
3 answers

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 versions of large files. However, when I run git lfs…
Mohan
  • 7,302
  • 5
  • 32
  • 55
24
votes
3 answers

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 downloading object. Object not found on…
JoeCoder
  • 354
  • 2
  • 8
23
votes
3 answers

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) While some developers who work on the data files…
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
22
votes
2 answers

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 just cloned repo: git lfs fetch --all git lfs…
LRu
  • 365
  • 1
  • 2
  • 7
22
votes
3 answers

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 Sourcetree and I tried that in…
Max
  • 396
  • 4
  • 13
21
votes
3 answers

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 LFS and I am left with several zero byte image…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
21
votes
1 answer

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 they weren't the whole file until I checked the…
kim holder
  • 1,744
  • 3
  • 16
  • 25
21
votes
1 answer

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 versions of previous commits. Is there a way to…
user1816847
  • 1,877
  • 3
  • 17
  • 29
20
votes
3 answers

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" the binaries and convert them to the pointers again,…
Jakub M.
  • 32,471
  • 48
  • 110
  • 179
19
votes
2 answers

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 GB per month. After you run out of that, you must…
GeneralCode
  • 794
  • 1
  • 11
  • 26
18
votes
2 answers

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?
alvion
  • 1,963
  • 3
  • 15
  • 23
18
votes
3 answers

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 fails. The file at which it fails is different each…
UtterlyConfused
  • 983
  • 1
  • 10
  • 18
16
votes
1 answer

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 lfs fetch git lfs fetch --all git lfs…
Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
1 2
3
64 65