LFS Migration to GitHub

Hello I would like to migrate my LFS to GitHub but I have not backed up the files from Netlify’s LFS. I had tried using lm:install but it doesn’t seem to work anymore.

Hi, @J370. If you already have Large Media working on your system, you should be able to backup all LFS files to your local system with this:

git lfs fetch --all

What happens when you run that command locally (while in the base of the repo directory)?

Hi, I had ran the command and it will ask for my username and password. Previously, I would be able to use lm:install to get Netlify’s credential helper. Currently, I’ve tried a combination of username and emails but couldn’t get authenticated.

Hi @luke, may I check if there’re any steps I can take for the problem above?

Hi @J370, thanks for the extra feedback.
Regarding the issue with username and password kindly follow the suggestions from the forums post below as it is similar to your issue.

Thanks.

Hi, @J370. Sorry about the delay here. The lm subcommand was removed from the CLI tool in version 18.0.0 as covered in the release notes here:

https://github.com/netlify/cli/releases/tag/v18.0.0

Quoting:

To be able to use the lm subcommand, you will need an older version of the CLI. That version can be installed like so:

npm i -g netlify-cli@17.38.1

Once that is installed, you should be able to get the Git credential helper installed again so you can pull any LFS files from the Large Media Git LFS service.

However, if there are any issues when attempting that, please reply here. If you do, I promise to respond to you promptly going forward.

This support guide may also be helpful if there are Git credential helper install issues:

Again, please reply here if you cannot get the LFS files downloaded locally. I’ll follow-up quickly if you do.

Hi @luke. Thank you for your reply. I was able to pull all the LFS files and am ready to remove Large Media. My id is f323f8df-3f60-4f7c-b957-da8990d74007.