Working with Obsidian
Published:
Sync via GitHub
Step 1 - Set Up GitHub (With SSH)
- First, if you haven’t already, set up 2FA (two factor authentication) for your GitHub account
- Then, configure connecting to GitHub using SSH
- GitHub Repositories Folders were previously configured via the GitHub Desktop app (hence remote URLs is used),
- So the next step is Switching remote URLs from HTTPS to SSH via Shell
$ 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