Tools for working with Obsidian and Git, mostly managing syncing and merging across your computers and devices.
- install the package
npm install -g @cameronolivier/ogt
- Create an
.ogtrc
file in your home directory - In your docs folder (where you have the git repo for syncing), run
ogt
to sync your iCloud vault with your other vaults.
- Clone this repo
- Run
npm run init
. This makes the cli script executable and adds theogt
command to your path (vianpm link
). - Create an
.ogtrc
file in your home directory.
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": (Optional) The commit message, defaults to: 'Updating iDrive Vault Docs',
"branchName": (Optional) The branch name, defaults to "icloud_docs_merge",
"verbose": (Optional) true or false, defaults to false for whether to log out progress to the console.
}