Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

jimthoburn/netlify-lfs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

“Netlify Large Media” example setup

See images.la2050.org for more details.

$ cd netlify-lfs-example 
$ git lfs install
$ git lfs track "*.jpg" "*.jpeg" "*.png" "*.gif"
$ git add .gitattributes
$ git status
$ git commit -m "Enable Git LFS"
$ git push origin main
$ netlify link
$ netlify lm:setup

  ⠙ Provisioning Netlify Large Media
  ✔ Provisioning Netlify Large Media
  ✔ Configuring Git LFS for this site

$ git status
  .gitignore
  .lfsconfig
$ cat .lfsconfig 

[lfs]
	url = https://8b48c355-e80f-4c95-8e37-0bdb3203d48b.netlify.com/.netlify/large-media

$ cat .netlify/state.json

{
	"siteId": "8b48c355-e80f-4c95-8e37-0bdb3203d48b"
}

$ git add .
$ git commit -m "Use Netlify for LFS"  
$ git push origin main

To https://github.com/jimthoburn/netlify-lfs-example.git
   286081f..89de01d  main -> main

$ git add .
$ git commit -m "Add an example picture"

1 file changed, 3 insertions(+)
create mode 100644 chia-seeds.jpg

$ git push origin main

Uploading LFS objects: 100% (1/1), 156 KB | 0 B/s, done.                                                                                                     
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 12 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 393 bytes | 393.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/jimthoburn/netlify-lfs-example.git
   89de01d..709bce5  main -> main
$

Netlify Large Media

https://lfs-example-jimthoburn.netlify.com/chia-seeds.jpg

About

Example setup for “Netlify Large Media”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published