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
12
votes
1 answer

SVN to Git migration with Git-LFS

We have a huge SVN repository (~100GB) that we are trying to migrate to Git. Problem is that, the repo contains lots of binary files spread across the folder tree. First thing that we thought is to move the binaries to Git-LFS, but there's some…
11
votes
2 answers

Should I always exclude text attribute for git LFS files?

There are a lot of articles in the web saying it is a good practice to place binary files under LFS. So, .gitattributes file will look like this: ## Fonts *.otf filter=lfs diff=lfs merge=lfs -text *.OTF filter=lfs diff=lfs merge=lfs -text *.ttf…
dmitry1100
  • 1,199
  • 12
  • 26
11
votes
1 answer

git reset --hard hangs on CircleCI/Ubuntu 14 with git-lfs < 1.5.6

I'm deploying to CircleCI and but my code is timing out. The command in particular that CircleCI is calling that's causing the time-out is during the checkout stage: git reset --hard SHA Where SHA is the hash of the build, but upon ssh'ing in I…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
11
votes
2 answers

Git LFS setup in jenkins

I have an issue with git LFS use in Jenkins. What I am doing now is that I am building a war from maven through Jenkins that war contains a jar file through Git LFS we have converted that jar file into a pointer file. But during checkout from…
Sidharth Rath
  • 159
  • 1
  • 1
  • 11
11
votes
3 answers

Git:Heroku Repository or object not found:

Here is the error message from Heroku master push command Git LFS: (0 of 5 files) 0 B / 167.50 MB batch response: Repository or object not found:…
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307
11
votes
1 answer

Track all files in a directory to git LFS but ignore a single folder present in that directory

Say I have a directory "my_dir" and some files in it. And I have a subdirectory in it "my_dir_subdir". File structure: "my_dir/my_dir_subdir". How to track my_dir via git LFS but not track "my_dir/my_dir_subdir/" via git LFS
Tejaswini
  • 351
  • 3
  • 10
11
votes
2 answers

List files not tracked by Git LFS

I'm initializing a new Git repo with a huge pile of files. The repo is using Git LFS. I want to ensure that I've told LFS to track all files that should be handled, before I make my first commit. I see that git lfs ls-files will list all the files…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
11
votes
2 answers

Migrate from old LFS repo to new LFS repo?

There is LFS git repository hosted at Bitbucket server. Now we need to create new LFS repo and move repository there with LFS storage. How to do this? For example for normal repo we can do: git remote add new NEW_REMOTE_REPO_URL git push —-all…
tuchk4
  • 2,270
  • 5
  • 21
  • 34
11
votes
1 answer

Git LFS files not found on server

We have been using Git with git-lfs hosted by our own instance of Gitlab. Sometimes when one particular user pushes files, some of them (seems to be .png files) don't make it to the LFS storage, but are added to git. I haven't been able to see the…
Blazing
  • 345
  • 1
  • 3
  • 7
11
votes
3 answers

Git lfs (Large File Storage) says lfs managed files are modified after a git lfs pull

I have a working copy of a repository that uses git-lfs to store some large files. I have git-lfs binary installed, but may not have run "git lfs install" inside of the working copy. When I want to update my local working copy after additions of lfs…
greggles
  • 2,089
  • 5
  • 20
  • 38
10
votes
1 answer

git lfs cannot discard file changes (encountered files that should have been pointers)

I have a file using git lfs, but even without me doing anything, it just shows up on git as having changes. I am unable to discard these changes, whether through the VS Code UI, through git reset, or git restore. Git keeps telling me "Encountered 1…
Samson
  • 1,336
  • 2
  • 13
  • 28
10
votes
1 answer

Git-LFS migrate using the new .gitattributes file

I have a largish (32k commits) git repository in which I need to rewrite history in one branch to remove a bunch of large files as described by a .gitattributes file. This branch is entirely local and has never hit a remote (in fact our remote is…
Adam Smith
  • 52,157
  • 12
  • 73
  • 112
10
votes
1 answer

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 PDF figure files in vector format which are ok to…
Uri Cohen
  • 3,488
  • 1
  • 29
  • 46
10
votes
1 answer

Git failed to push (LFS upload missing objects)

I’ve been using Gitlab with LFS just fine for a while now but somehow ran into this problem today: me@some-PC MINGW32 /b/Unity Projects/Platballer (master) $ git push LFS upload missing objects: (32/33), 30 MB | 0 B/s Uploading LFS objects: 97%…
Arvin
  • 1,391
  • 4
  • 19
  • 33
10
votes
3 answers

How to print a Git LFS file's old version to stdout (git show / git cat-file for LFS)?

Another title for this question could be 'How to checkout multiple versions of a Git-LFS managed file?' I would like to inspect several versions of a file stored in Git-LFS. I would therefore like to several versions of this file side-by-side in my…
Esteis
  • 4,669
  • 2
  • 29
  • 45