Questions tagged [git-lfs-migrate]

33 questions
19
votes
2 answers

How to setup a git lfs server at home?

I am making use of git lfs for storage of large files in a github repository. The only problem is that there is a quota for git lfs; specifically you can only store 1 GB and only stream (download) 1 GB per month. After you run out of that, you must…
GeneralCode
  • 794
  • 1
  • 11
  • 26
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
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
5
votes
0 answers

How can I tell if my Git LFS migration worked?

To migrate my Git repo to Git LFS, I did this command: > git lfs migrate import --everything --include="*.dll" migrate: Sorting commits: ..., done. migrate: Rewriting commits: 100% (9376/9376), done. {long list of branch names and hashes} migrate:…
TS_
  • 75
  • 4
4
votes
1 answer

How to migrate to git lfs

I have a git repo where many files should be lfs because they are larger than 100M. Looking around I was unable to find a step by step guide that explain how to migrate a real existing repo with many branches and where lfs files are within…
freedev
  • 25,946
  • 8
  • 108
  • 125
3
votes
1 answer

Remove Git LFS with filter-branch? (Can't re-add unchanged file to index.)

Trying to migrate a repo (including history) OUT of Git LFS. I ran git lfs migrate export --include="*" --everything (mentioned here) on a test repo, but it didn't work as expected and left LFS pointer files instead of converting them all to…
jndi75
  • 43
  • 1
  • 5
2
votes
0 answers

Is there a good way to determine if a file is stored using git-lfs?

We have a git repo that is exclusively setup to store large binary files; the intention is that every file will be stored using git-lfs (which is new to most of the team). There are 106564 files. We are running in to issues where certain team…
LongTrail
  • 31
  • 4
2
votes
1 answer

Git LFS: Where are the files stored before they are pushed?

I added git LFS to a repository and wanted to convert a few already committed files to LFS objects. I ran the following command: git lfs migrate import --include="*.shelf" Now in my local repository, all *.shelf files have been replaced with text…
Mahathi Vempati
  • 1,238
  • 1
  • 12
  • 33
2
votes
2 answers

Files have become unreadbale post git lfs migrate import, how to undo

I did the following on my repository and now all the files have been replaced by statements like these(I have replaced the value in the second line with *s): version https://git-lfs.github.com/spec/v1 oid…
fireball.1
  • 1,413
  • 2
  • 17
  • 42
2
votes
2 answers

Git LFS git lfs migrate import include all file types specified in .gitattribute?

I installed git lfs and created a gitattribute file with a lot of file types to track. I'd like to now run the git lfs migrate command for all file types specfied in the .gitattribute. How can I do this? All the sources I've found seem to only do…
fomi
  • 131
  • 3
  • 9
2
votes
0 answers

Debugging Git LFS - why isn't my pack file shrinking after git lfs import?

I have a UnrealEngine project with a bunch of uasset and umap files that I've tracked with LFS and not getting the results I expect. The repository is a single pack file thats about 21gb. the working copy is about 25gb for a total of 46gb for the…
jkratz
  • 393
  • 2
  • 11
1
vote
1 answer

How to `git lfs migrate` all branches using .gitattributes

We have a repository with multiple branches and merge commits. There was some disagreement at the start on whether we wanted to use LFS or not, and the result was that no files have yet been tracked with Git LFS. Now, however, we've run into issues…
Tientuinë
  • 205
  • 2
  • 7
1
vote
0 answers

Does git lfs migrate --no-rewrite change all the branches? And will it change the large file from history to LFS objects?

In my repo, I have large files committed in history and also present in the latest commit. I want to use git lfs migrate --no-rewrite so that the previous commit's SHAs does not get changed. But will --no-rewrite change all the large files objects…
Toral
  • 185
  • 2
  • 7
1
vote
0 answers

Retaining the original commit hashes when converting a repository to Git LFS

I have a Git repository which contains a large number of binary files that change on a regular basis. Now I want to migrate the whole repository (including history) Git LFS and succeeded using git lfs migrate import --everything. Is there a method…
Tim
  • 1,430
  • 15
  • 36
1
vote
2 answers

git lfs fails to track a file after I rename it

I keep running into this issue where I rename a file that is being tracked under git lfs, and when I push up the change to my repo, the file is no longer being tracked by git lfs. Does anyone know how to resolve this?
TMin
  • 2,280
  • 1
  • 25
  • 34
1
2 3