Git
Vault CMS bundles the Git plugin (obsidian-git) so you can commit and push without leaving Obsidian. Pushes trigger your host to rebuild the Astro site. Overview of the publishing chain: Publishing.
Features
Section titled “Features”- Status bar — Git status and changed file count (bottom right).
- Commit and sync — Stage, commit, and push in one action (
Ctrl/Cmd + Shift + Sor the status bar up-arrow). - Automatic backup — Optional interval-based commits/pushes in plugin settings.
Prerequisites
Section titled “Prerequisites”- Git installed (
git --version). - A remote (e.g.
origin) for your Astro repo. - Authentication — SSH key on your host, or HTTPS with a credential helper / personal access token.
Configure the plugin
Section titled “Configure the plugin”- Settings → Community plugins → Git — open the gear icon.
- Authentication — SSH (recommended) with agent and key added on GitHub/GitLab/etc., or HTTPS with username + PAT when prompted (often cached after the first success).
- Verify remote — in a terminal at the project (or vault) root:
git remote -vIf origin is missing:
git remote add origin https://github.com/your-username/your-repo.gitCommit message format
Section titled “Commit message format”Vault CMS ships with a descriptive auto-commit pattern similar to:
Blog update M/D/YYYY h:ma: {{numFiles}} file(s) changed.So history shows when each publish action ran and how many files changed.
Auto-push on a timer
Section titled “Auto-push on a timer”- Settings → Community plugins → Git → Options
- Set Auto push interval (minutes), e.g.
5.
Useful for frequent small edits; use manual push when you want explicit control over deploy timing.
Pull before push is typically enabled so local branches stay aligned with the remote before a push.
What gets ignored
Section titled “What gets ignored”Installer adds entries like:
# Vault CMS / Obsidian.obsidian/workspace.json.obsidian/workspace-mobile.json.ref/Workspace JSON is machine-specific (tabs, layout); keep it out of Git to avoid noise and merge conflicts. Plugin configuration under .obsidian still belongs in the repo per your workflow.
Deployment
Section titled “Deployment”After a successful push, Netlify, Vercel, Cloudflare Pages, etc. build from the repo—no extra Vault CMS step.
Auto-pull on boot may be enabled so when Obsidian starts, the vault fetches remote changes (handy when editing from multiple machines).
Commands
Section titled “Commands”- Git: Push / commit-and-sync —
Ctrl/Cmd + Shift + Sor the status bar control.