Skip to content

Instantly share code, notes, and snippets.

View mcroach's full-sized avatar

Mike Roach mcroach

View GitHub Profile
@mcroach
mcroach / storing-image-assets-in-repo.md
Last active January 8, 2025 13:09
Using an 'assets' branch to store images in your repo

Storing image assets in your repo and referencing in markdown

Create an assets branch and make the initial commit

git checkout --orphan assets
git reset --hard
cp /path/to/cat.png .
git add .
git commit -m 'Added cat picture'
git push -u origin assets