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

What types of binary files does Git keep deltas for?

We're dealing with a very large project that needs to be migrated to Git. Unfortunately, it contains a large number of binaries as well, some of which are zip-s, dll-s and so on. At the moment, it's not possible to remove these binaries from the…
carlspring
  • 31,231
  • 29
  • 115
  • 197
10
votes
1 answer

Git Large File Storage with Google Cloud Storage

I am part of the project, where we use git repository hosted on google cloud source repository. Right now we use google cloud storage to store raw and processed data. Everyone involved in the project downloads the data and places it locally in the…
jo9k
  • 690
  • 6
  • 19
10
votes
3 answers

How to check that all git-lfs tracked and committed files are pointers?

As git-lfs requires some manual setup (install git-lfs, run git lfs install once) this can lead to developers not committing git-lfs tracked file types correctly. I would like to check that for pull requests on our continuous integration system. How…
Lars Bilke
  • 4,940
  • 6
  • 45
  • 63
10
votes
3 answers

Bitbucket git LFS giving weird error message

I have worked on a git LFS via bitbucket for a while with no problem. I was working on my own but recently a trainee has joined me and we do not manage to push files from his machines. We have been able to clone the repo on his machine (including…
arennuit
  • 855
  • 1
  • 7
  • 23
9
votes
2 answers

git clone lfs files not fully downloading

I have an issue, where if I run git clone I have some binary files in LFS, those files will clone but will be very small like 130 bytes when in reality they should be 100mb. When I go on Github it shows that they are 100mb. When I press download on…
bink1time
  • 383
  • 1
  • 5
  • 15
9
votes
0 answers

What causes an entry in my git config file for every LFS file I add?

I recently added many (new) files to my git repository and am tracking them with Git LFS. My remote is BitBucket and it all works nicely as intended. Except, for every file I add to LFS, an entry is added to my .git/config that looks like…
Wilbo Baggins
  • 2,701
  • 3
  • 26
  • 39
9
votes
3 answers

LFS upload missing object but the file is there

I am trying to push a commit. But I keep getting an error saying: error: GH008: Your push referenced at least 1 unknown Git LFS object The file it is questioning is: (missing) SRP/com.unity.shadergraph/.data/texture_2d_lod_node.PNG…
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
9
votes
1 answer

Git: reduce the size of `.git/lfs/`

I use git-lfs to track large files, the setup is: . ├── ... ├── ... ├── large-files ├── ... ├── ... └── .git where an external storage is mounted on large-files, and all large files go here. The problem with this setup is, there is a .git/lfs…
Incömplete
  • 853
  • 8
  • 20
9
votes
3 answers

git lfs prune to remove files from lfs and push to origin

So here's what's happened: Accidentally committed lots of files that weren't meant to be. Did a git reset --soft HEAD~2 to get back to a commit before the accident Modified gitignore to ignore the files Commited again and pushed to origin. I…
Arvin
  • 1,391
  • 4
  • 19
  • 33
9
votes
1 answer

How to direct git-lfs traffic for multiple remotes to a single endpoint?

I use a workstation to develop and two remotes to store: a local (LAN) git server [origin] and a hosted (e.g. bitbucket/github) git server [cloud] for extra backup. I am currently using git lfs to track png files and my available online storage is…
user2704504
  • 133
  • 6
9
votes
1 answer

Find and remove too large of files to push in git lfs

I have a commit, and I am trying to push it. I get this response Git LFS: (0 of 9 files, 9 skipped) 0 B / 3.24 GB, 3.24 GB skipped [422] Size must be less than 2147483648 [0ee4f2bc4d42d98ea0e7b5aeba2762c7482f3bcf00739d40b922babe8061820b] Size must…
Trey
  • 394
  • 1
  • 4
  • 17
8
votes
1 answer

git lfs migrate with --everything is not migrating all the remote branches

I cloned a repo which has 10+ remote branches and 20+ tags. Cloned repo has the default branch master checkout. When I ran git lfs migrate, it migrated all the tags but migrated only master branch, other remote branches were not migrated. Is this…
Toral
  • 185
  • 2
  • 7
8
votes
4 answers

How to download git-lfs files using the oid sha256 information

I came across a set of images (e.g., https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop/blob/master/stuttgart/stuttgart_cp_00000.npy) that are stored in the git lfs with the information like this: version…
jwm
  • 4,832
  • 10
  • 46
  • 78
8
votes
0 answers

git lfs migrate doesn't seem to be migrating files

We've been using git-lfs successfully for several years. However, we've periodically added to the file types that we're including in git-lfs. One of the more recent file types that we've moved over to git-lfs is all of our *.csv files. The problem…
Ken Smith
  • 20,305
  • 15
  • 100
  • 147
8
votes
1 answer

Is it possible to use git lfs without API or other servers?

I have already a local bare git repository without LFS, just for sharing the git, like it was supposed to. This git will be utilized for stocking big images (singularity images) and my repo is already large (6 GB). However, I don’t particularly want…
Rilgar17
  • 181
  • 1
  • 7