Curious Chase

Curiously Chase

How I Copy my Obsidian Files into my git Repository

Share on Twitter

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.

How It Works

I have a yarn script called cpAndPush that I run from the command line:

yarn cpAndPush

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:

yarn prebuild:cpFiles runs a script I have locally that fetches files from my Obsidian vault into my content directory.

Share on Twitter