Nexara Connect docs0.1.0

Obsidian Git

The workspace is a normal git repository, so Obsidian can open it as a vault and sync it with the Obsidian Git plugin.

Before you start

Clone

git clone https://dev.nexara.ac/git/<workspace>.git nexara
# user: your email   password: the nxg_ token

The workspace id is shown in the remote URL on the Settings page (the first owner's workspace is main unless WORKSPACE was set). Open the folder as an Obsidian vault, install Obsidian Git, and set pull on start and auto commit-and-sync. Add this to .gitignore:

.obsidian/workspace*.json

What a push may not contain

A pre-receive hook rejects the whole push if any commit:

Secret content appears in the clone only as nxc-sealed:v1: ciphertext. Edit secrets in the web app. After a successful push the server assigns missing ids and rebuilds the index.

Troubleshooting

SymptomCause
401 authentication required: use an nxg_ git tokenYou used your password or an nxc_ key. Use the nxg_ token as the password
403 forbiddenYou are not an owner of that workspace, or the token belongs to another workspace
Push rejected with a reasonOne of the rules above. Fix the commit and push again
Generated from connect/obsidian-git.md by docs/site/build.mjs. Edit the Markdown, then rebuild.