Skip to content

0.2.0

Choose a tag to compare

@wandermyz wandermyz released this 18 Oct 07:22
· 12 commits to main since this release

The plugin is now "GitHub Enterprise Sync", with the id github-enterprise-sync (it was obsidian-github-sync), in preparation for the Obsidian community directory. Obsidian treats a new id as a separate plugin, so existing installs need a one-time move. See below.

Fixes

  • Remote changes could be missed for up to a minute. Obsidian's requestUrl honoured GitHub's max-age=60, so a sync soon after the previous one could see a stale branch head and skip commits pushed from another device. API reads now send Cache-Control: no-cache.
  • A repository can no longer write into the vault's config folder when that folder has been renamed from .obsidian.

Changes

  • Note files are read and written through Obsidian's Vault API, so open editors update in place. Deletions follow your Files and links → Deleted files setting.
  • The settings are searchable from Obsidian's settings search, and invalid host and repository values are flagged inline.
  • Requires Obsidian 1.13.0 or later.

Moving an existing install

On each device:

  1. Run Sync now with the old plugin, so nothing local is left unpushed.
  2. Install 0.2.0. It lands in .obsidian/plugins/github-enterprise-sync/.
  3. Copy data.json and local.json from .obsidian/plugins/obsidian-github-sync/ into the new folder. This carries over your settings, your sign-in and the sync position.
  4. Enable GitHub Enterprise Sync, disable the old plugin, then delete .obsidian/plugins/obsidian-github-sync/.

If you can't copy files on a device (for example on iOS), do step 1, then sign in again and run Full resync in the new plugin.

If you use BRAT, add or update this repository there. BRAT installs it under the new id.