0.2.17 • Published 2 years ago
@cameronolivier/ogt v0.2.17
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
.ogtrcfile 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
ogtto sync your iCloud vault with your other vaults.
How to dev:
- Clone this repo
- Run
npm run initto make the cli script executable and add theogtcommand to your path (vianpm link). - Create an
.ogtrcfile 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"
}