Working with Obsidian

less than 1 minute read

Published:

Sync via GitHub

Step 1 - Set Up GitHub (With SSH)

$ git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
  • Add GitHub to the list of known hosts
$ ssh -T git@github.com

Step 2 - Install and Configure Obsidian Plugin

  • Install obsidian-git plugin for Obsidian
  • Create .gitignore file in the repository folder and add the following lines:
.obsidian/  # to exclude Obsidian workspace settings (including plugin and hotkey configurations)
# OR
.obsidian/workspace  # to exlude workspace cache

# Add below lines to exclude OS settings and caches
.trash/
.DS_Store