Trial #27: Migrate Git LFS files from Netlify Large Media to another LFS provider
Problem:
If you want to fork or even clone a repository that is using Netlify Large Media as it’s Git Large File Storage provider, the large files may not be available to you.
For example I want to process my some Netlify Large Media assets using gulp to standardise filetype and produce webp images. I attempted to do this in Azure DevOps and found Netlify’s Large Media reluctant to share the binaries with a task runner.
It seems that you must be running the Netlify CLI and the Large Media plugin in order to access the files. Therefore, you need to take steps to migrate your binaries to another provider on a system that has the tools installed and is authenticated with netlify. From then on you may only need only git LFS.
Solution:
Import or fork your old repository and clone this into your working environment.
Pitfalls:
- At time of writing Azure DevOps repositories seem to only support access for LFS over http and not ssh, the
git lfs push
command hung without error when I attempted over ssh. - Each Git provider seems to have their own interpretation of LFS so please read their docs carefully and consider compatibility. For example the git based CMS Forestry do not support GitLab or Bitbucket LFS.
Leave a comment