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

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 next day the file began to contain a text value oid…
I.U.
  • 319
  • 1
  • 2
  • 5
16
votes
2 answers

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 files, 1 skipped) 0 B / 1.10 MB, 4.30 MB skippedGit…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
16
votes
2 answers

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 file types in future projects. I would like to be…
J Garcia
  • 806
  • 1
  • 7
  • 17
16
votes
3 answers

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?
Pedro Lopes
  • 2,833
  • 1
  • 30
  • 36
16
votes
3 answers

git lfs ls-files : Asterisk (*) vs. Dash (-)

This is my listing of git lfs managed files $ git lfs ls-files b1d5dd29dd - file1.zip 27d3073f43 - file2.zip fb4e699c05 * file3.zip Why does one file have an asterisk/star (*) beside it, while the others have a dash (-) beside them? The git lfs…
changingrainbows
  • 2,551
  • 1
  • 28
  • 35
14
votes
2 answers

git push was rejected due to missing or corrupt local objects git-lfs

I am new to git-lfs, Following are the steps I configured and tried to push git-lfs git clone git@gitlab.example.com:group/project.git copied a tar.gz lfs file from different repo to my current repo, then git lfs install git…
k4jc
  • 151
  • 1
  • 1
  • 6
13
votes
7 answers

Adding large files to docker during build

My service needs some large files when it is running (~ 100MB-500MB) These files might change once in a while, and I don't mind to rebuild my container and re-deploy it when it happens. I'm wondering what is the best way to store it and use it…
user972014
  • 3,296
  • 6
  • 49
  • 89
13
votes
1 answer

Migrate from LFS to annex

In a moment of delirium before a deadline, I added a large (> 100 MB) binary to a repository with remotes on private hosts as well as github. Of course, github complained, and naively trusting their suggestion, I opted to use LFS. After two or three…
askewchan
  • 45,161
  • 17
  • 118
  • 134
13
votes
1 answer

Does Git LFS support local or "near" secondary storage/cache?

I'd like to know if it's possible to minimize the download times of large files when using Git LFS. specifically, the following scenarios: keep files when switching branches allow to get files from a different repository in the same network -…
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
12
votes
5 answers

Removing missing LFS objects from git repository

I am missing a bunch of LFS objects in my git repository*, both on the clients and the server. I am aware that those objects are lost and that's okay. Unfortunately this means that git lfs fetch --all or even git lfs push --all origin will fail. I…
Nepoxx
  • 4,849
  • 5
  • 42
  • 61
12
votes
2 answers

Git LFS with Google Drive, Dropbox, etc?

I'm working on a game in Unity, so my project contains art assets. So I have to use Git LFS, but I will run out of that 1 GB quickly. (which is given by BitBucket. And that +1 GB is not so much and also costs a lot.) Is there a way to store my LFS…
Tudvari
  • 2,715
  • 2
  • 14
  • 33
12
votes
1 answer

How to STOP using Git LFS in a repository

I recently setup Git LFS in our primary repo and have had nothing be problems with it so far. On top of that, we only set it up to stop a ballooning effect on our separate build repo (which is going away in favor of a new process). The primary…
Patrick
  • 3,302
  • 4
  • 28
  • 47
12
votes
3 answers

GitLab push error: LFS objects are missing

I've used Git LFS for GitLab for a few months now without any problems, but it returned the following error while pushing files lately: $ git push origin master Git LFS: (14 of 14 files) 8.88 MB / 8.88 MB Counting objects: 54, done. Delta…
Alex
  • 133
  • 1
  • 1
  • 8
12
votes
2 answers

.gitignore vs .gitattributes

Considering I have *.pdf files in both my .gitignore and .gitattributes, how does git behave and prioritize between the two? Does it ignore pdf files or stores them as LFS?
shwz
  • 426
  • 1
  • 6
  • 22
12
votes
2 answers

Git LFS skipped files

I'm actually working on moving my larges files to Git LFS. I have successfully pushed a set of files. In a previous commit but I have created a new one with just one files and when I using git lfs push command I obtain this output: Git LFS: (0 of 0…
Damien Chesneau
  • 457
  • 2
  • 18