Notion app logo
Struggling to stay organized and effective? Learn to master your time and tasks with the Effectively Notion course!

How I Copy my Obsidian Files into my git Repository

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.

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:

  • I work on main for my personal website, so doing this publishes to
  • I keep my local repo clean if I'm not actively working on something. If I need to run this and have development changes, I'll run git stash save -u -k "wip" before running yarn cpAndPush so that my working tree is clean

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

Photo of Chase Adams

Hey, I'm Chase. I help aspiring entrepreneurs and makers turn their ideas into digital products and apps.


Vector Arrow Scribbles
banner image for figma vector arrows scribbles

A figma community project of vectorized hand-drawn arrows.

Go To Figma
Vector Line Scribbles
banner for figma vector line scribbles

A figma community project of vectorized hand-drawn lines.

Go To Figma
Vector Shape Scribbles
banner image of figma vector shapes scribbles

A figma community project of vectorized hand-drawn shapes.

Go To Figma

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.


I'm on almost all social media as @curiouslychase.

The curious logo of Chase Adams: glasses and a bow tie.stay curious.