Skip to content
AddHunt
Obsidian plugins

Obsidian GitHub Publisher

Obsidian plugin that pushes chosen notes to a GitHub repo

Works with ObsidianOpen source

  • Open source
  • Licence: MIT

In short

Obsidian GitHub Publisher is a plugin that exports selected notes and folders from an Obsidian vault to a folder in a GitHub repository, by hand or on a schedule. It is for people who feed notes into a static site generator or back up part of a vault to GitHub.

What you get

  • Pick notes and folders, or select files by tag
  • Publish to any folder and branch of a repository
  • Manual publishing or a timed interval
  • Command palette action for instant publishing
  • One-way export that mirrors the selection

The details

GitHub Publisher sends part of an Obsidian vault to GitHub. The user picks notes and folders, or marks files with tags, and the plugin copies them into a chosen folder on any branch of a repository through the GitHub API.

Typical uses

The author suggests it for publishing notes through a static site generator and for backing up a portion of a vault. Publishing can be started from the command palette or a settings button, or set to run on an interval measured in minutes.

Configuration

  • A GitHub personal access token with commit rights
  • The repository URL, branch and target folder
  • Tags that mark files for publishing, read from frontmatter or inline
  • The notes or folders to export
  • A publish interval, or 0 to turn automatic publishing off

How it behaves

This is a one-way export, not a two-way sync. On every publish the target folder in the repository is overwritten to match the selected local files, and files there that do not exist locally are deleted. Edits made on GitHub are not pulled back into Obsidian.

The plugin is not yet in the official Community Plugins list, so it is installed with BRAT or by hand. It is open source under the MIT license.

Alternatives to Obsidian GitHub Publisher

All alternatives

Questions

Is this a two-way sync?

No. It only exports from Obsidian to GitHub; edits made on GitHub are not brought back into the vault.

What happens to files already in the target folder?

The folder is overwritten to match the selected notes, and files that are not present locally are deleted.

How do I install it?

It is not in the official Community Plugins list yet, so it is installed through BRAT or by copying main.js and manifest.json into the vault's plugin folder.

More like this