Note
This will also backup your editor config
Install obsidian-git
Community Plugin
Open Obsidian Git and click Install
.
Create Github Repo
Go to Github, create a new repository and copy the ssh link.
Init a New Git Repo
cd your-vault-directory-path
git init
Add Remote
git remote add origin [email protected]:your-user/your-repo.git
First Commit
git add .
git commit -m "First commit"
Push
git push -u origin master
Configure obsidian-git
- Set
Vault backup interval (minutes)
to anything you like. This will define how often obsidian pushes changes to Github. Setting it to 0 will disable this functionality. - Set
Auto pull interval (minutes)
to anything you like. This will define how often obsidian pulls changes from Github. Setting it to 0 will disable this functionality.