Questions tagged [git-lfs]

Questions about Git Large File Storage.

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/

683 questions
12
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
  • 10,472
  • 6
  • 59
  • 124
12
votes
4 answers

GIT LFS: Get the complete list from the whole repository

I have only found git lfs ls-files but this command give only the list from a specific ref. There is a way to have the whole list of LFS object from a GIT repository?
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
  • 17
11
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
  • 148
  • 1
  • 10
11
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…
11
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
  • 4,674
  • 5
  • 26
  • 45
11
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
  • 49,310
  • 9
  • 37
  • 73
11
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,123
  • 3
  • 25
  • 43
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
  • 71,376
  • 65
  • 208
  • 328
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
  • 191
  • 2
  • 6
11
votes
2 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.
  • 27,689
  • 38
  • 101
  • 164
10
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.
  • 121
  • 1
  • 5
10
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
  • 1,829
  • 32
  • 58
10
votes
2 answers

Smudge error: Error downloading

I'm not sure if this is the right forum to discuss git-lfs but as we have a tag for it I'll post my question. I have read the "Troubleshoot Git LFS in Bitbucket" page. I'm getting the following error when runing: ssh-agent bash -c 'ssh-add…
Dan-Dev
  • 7,171
  • 3
  • 31
  • 45
10
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…
1 2
3
45 46