πŸš€ How I Use Obsidian Git to Automate My Blog Publishing

Writing blog posts in Markdown is great. But what if you could write, version, and publish your posts to GitHub Pages β€” without switching apps or running Git commands?

That’s exactly what I’ve done using the Obsidian Git plugin.

Here’s how I set it up in less than 5 minutes.


🧱 Prerequisites

Before you begin, make sure you have:

  • Git installed on your system
  • A GitHub repository set up for your blog (I use Jekyll + GitHub Pages)
  • Your Obsidian vault pointing at your blog repo (e.g., _posts/, _config.yml, etc.)

πŸ“¦ Step 1: Install the Git Plugin

  1. Open Obsidian
  2. Go to Settings β†’ Community Plugins
  3. Disable safe mode, then click Browse
  4. Search for β€œGit” (by Denis Olehov)
  5. Click Install, then Enable

βš™οΈ Step 2: Configure the Plugin

Once enabled, go to Settings β†’ Git and tweak these options:

Setting Value
βœ… Auto pull on vault open Enabled
⏱ Auto commit & push Leave disabled (optional)
πŸ“ Commit message template Blog update on {date}
πŸ”„ Manual sync (preferred) Use Cmd + P β†’ Git: ...

This gives you full control over what gets committed and when your blog goes live.


✍️ Step 3: Write and Publish

Now your flow is simple:

  1. Create or edit a Markdown post in _posts/
  2. Save changes
  3. Open the command palette (Cmd + P)
  4. Run:
    • Git: Commit all changes
    • Git: Push

Your Markdown is committed, pushed, and live on GitHub Pages within seconds.


πŸ§ͺ Bonus Tips

  • Add a .gitignore to avoid pushing workspace or plugin settings
  • You can also auto commit on save if you’re comfortable with frequent syncing
  • Want to preview your site? Use jekyll serve locally or just trust the GitHub Pages rebuild

Final Thoughts

Using Obsidian Git turns your vault into a fully working static site editor β€” no terminal needed. Perfect for developer blogs, tech journals, or any writing workflow you want to back with version control and instant publishing.

Let me know if you’d like my .gitignore, or a starter blog post template!

Written on June 15, 2025