We’ve decided to migrate from Bitbucket to Github. We have a relatively large existing repo that’s maybe 500 MB plus 20+ GB of files stored in git-lfs.
I’m having trouble doing the initial push to github, as it’s rejecting certain *.csv files in our git history because they’re too large. We’ve been storing our *.csv files in git-lfs for a while, but there are apparently some old ones way back in the bowels of our history that haven’t been migrated.
That seems easy enough to fix - just run this command:
git lfs migrate import --everything --include="*.csv"
And that seems to work - except that when I run
git lfs migrate info --everything, it doesn’t seem to have sucked in the *.csv files:
PS E:\source\swyfft_web_ken> git lfs migrate info --everything migrate: Sorting commits: ..., done. migrate: Examining commits: 100% (131623/131623), done. *.cs 3.1 GB 142030/142038 files(s) 100% *.csv 1.3 GB 2102/2102 files(s) 100% *.csproj 1.1 GB 15634/15634 files(s) 100% *.exe 224 MB 43/43 files(s) 100% *.ts 150 MB 6133/6134 files(s) 100%
And when I try to push the rewritten repository to GitHub, it still complains about there being *.csv files that are too large for GitHub to accept. (Can’t get the exact error message, as the error takes about 8 hours to show up, and the last time I got it has scrolled off my terminal.)
Am I misunderstanding something about how git lfs migrate is supposed to work? Or am I doing something wrong?