@cameronolivier/ogt
v0.2.17
Published
Tools for managing Obsidian vaults syncing in a Github repo
Downloads
13
Readme
Obsidian Git Tools
Tools for working with Obsidian and Git, mostly managing syncing and merging across your computers and devices.
How to make this work:
- install the package
npm install -g @cameronolivier/ogt
- Create an
.ogtrc
file in your home directory with the following contents:
{
"externalPath": the file directory for your device(iCloud) vault,
"vaultPath": where you store your docs vault that sinks to git,
"message": The commit message, defaults to: 'Updating iDrive Vault Docs',
"branchName": The branch name, defaults to "icloud_docs_merge",
"verbose": true or false, defaults to false for whether to log out progress to the console.
}
- In your docs folder (where you have the git repo for syncing), run
ogt
to sync your iCloud vault with your other vaults.
How to dev:
- Clone this repo
- Run
npm run init
to make the cli script executable and add theogt
command to your path (vianpm link
). - Create an
.ogtrc
file in your home directory with the following contents:
{
"externalPath": the file directory for your device(iCloud) vault,
"vaultPath": where you store your docs vault that sinks to git,
"message": The commit message, defaults to: 'Updating iDrive Vault Docs',
"branchName": The branch name, defaults to "icloud_docs_merge"
}