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
8
votes
2 answers

Git checkout branch and prune everything related to previous checkout (incl. git-lfs remains)

I have a repo of a superproject with number of submodules. lots of files of both are in Git LFS. The repo comes with multiple long-lived release branches. Problem The complete clone transfers 20 GB of Git and Git LFS objects. Checkout of master…
mloskot
  • 37,086
  • 11
  • 109
  • 136
8
votes
1 answer

What `git lfs migrate info` output means?

When I run git lfs migrate info --everything on a repository I get the following output: ... clipped migrate: Examining commits: 99% (3622/3647) migrate: Examining commits: 100% (3647/3647), done *.json 56 MB …
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
8
votes
1 answer

GitHub Git-LFS limit reached

I have somehow reached the github data limit even though my single remaining large file (138 mb) is now being tracked by LFS (Github's Large File Storage). I reset to the last commit that went through, made sure that LFS was tracking the only (to my…
8
votes
1 answer

How to repair Unity .prefab files in git-lfs after merging

I'm working on a Unity3D project in Unity17.2.1 I use git with Git-LFS and SourceTree on Windows 10. My problem is now: On my local clone everything works fine. But if I clone the project in a new folder (for testing) I get a lot of errors. It…
derHugo
  • 83,094
  • 9
  • 75
  • 115
8
votes
1 answer

Git format-patch patches can't use LFS across different repositories

We are currently migrating from CVS to a git repository. One team however already used cvs2git about a year ago for their repository because their new feature needs a lot of moving files with history which CVS is historically not very good at. The…
8
votes
0 answers

Is there a better way to do `git subtree pull` while using git-lfs?

I have two repositories: parent and child. They both use git-lfs. I am trying to import child as a subtree into parent. When in the parent directory, I try adding it and I get the following: > git subtree add --prefix child [child_url] git fetch…
PortMan
  • 4,205
  • 9
  • 35
  • 61
8
votes
1 answer

Cannot use older version of git-lfs on a repo created using latest version

I have a local repo with a bunch of git-lfs files tracked. It was creted using git-lfs version 2.1.0. If I try to do a checkout on that repo using git-lfs version 1.5.6, I get the error: Error: unknown command "post-checkout" for "git-lfs" …
PortMan
  • 4,205
  • 9
  • 35
  • 61
8
votes
2 answers

Multiple file versions in git-lfs

I'm trying to estimate the storage requirements for my project on GitHub and have a few questions about how git-lfs stores multiple versions of files: Are multiple versions of files stored by git-lfs? If so, will every change to a file result in…
Andrzej Pronobis
  • 33,828
  • 17
  • 76
  • 92
8
votes
2 answers

Git LFS asking for passphrase for every tracked file

I am using Git LFS with Bitbucket using OSX (although i found the same issue with Ubuntu). My repo contains many files stored using Git LFS When I do a git clone, it asks for my passphrase for EVERY tracked file using Git LFS. This is a huge issue…
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
8
votes
1 answer

Initialize bare git repository with LFS

I'd like to initialize several local git repositories on an external drive (git init --bare reponame) supporting git LFS protocol. I.e. after cloning these, I'd like to be able to track large files via LFS (the version of the files should then be…
user46317
  • 843
  • 1
  • 10
  • 16
8
votes
1 answer

git migrate from LFS to normal repo

There is LFS git repository hosted at Bitbucket server. Now we do not need LFS. How to migrate from git LFS repository back to normal repository? If repo with LFS - there are "pointers" instead of files in the commits. And if I need to remove LFS -…
tuchk4
  • 2,270
  • 5
  • 21
  • 34
8
votes
3 answers

Git LFS not working on TeamCity agent

I set up git-lfs on my private repository and everything works perfectly from the command line. I set up my TeamCity build agents to have git-lfs installed and initialized. However, when I try running it though the TeamCity build, the git-lfs pull…
Vlad
  • 1,889
  • 17
  • 33
8
votes
1 answer

What do I gain by using git lfs?

I understand that git lfs replaces the lfs tracked files with pointer files in my repository. What I don't understand is what I gain from that happening. Is it just that I never have to download the binary files associated with commits that I never…
Bob Roberts
  • 151
  • 1
  • 6
8
votes
0 answers

iOS Cocoapod with git large file storage

I'm working on a component for iOS developers which is distributed as a Cocoapod. We have several versions up and running, and everything worked really nicely so far. Since the component itself is rather large (it performs OCR, barcode scanning, and…
Cerovec
  • 1,273
  • 10
  • 19
8
votes
2 answers

Serve git-lfs files from express' public folder

I'm using node.js (express) on Heroku, where the slug size is limited to 300MB. In order to keep my slug small, I'd like to use git-lfs to track my express' public folder. In that way all my assets (images, videos...) are uploaded to a lfs-store…
abernier
  • 27,030
  • 20
  • 83
  • 114