How I copy Obsidian notes into git so that I can author my notes in Obsidians and publish them to the web.
My workflow for frequently publishing content to my personal website with Obsidian relies on constantly fetching files from my Obsidian vault into my git repo and pushing it straight to GitHub, triggering a Vercel deployment.
I have a
yarn script called
cpAndPush that I run from the command line:
cpAndPush looks like this:
yarn prebuild:cpFiles && git add . && git commit -m 'update content' && git push origin HEAD
For this script to work, there are a few notes about my workflow:
mainfor my personal website, so doing this publishes to curiouslychase.com
git stash save -u -k "wip"before running
yarn cpAndPushso that my working tree is clean
yarn prebuild:cpFiles runs a script I have locally that fetches files from my Obsidian vault into my
Subscribe to my Newsletter
Every other week I publish the Curiously Crafted newsletter.
In it, I explore the intersection of curiosity and craft: the people who make stuff, what they make and the way they pursue the craft of making.
On The Web
See all of the places I have a presence on the web.