Using git-sync to synchronise my markdown notes across multiple machines and git hosts
date
name
src
feature
images/git-sync.drawio.png
pkm
work
git
Multi-Repo FOAM Git Sync
false
posts
/2022/02/05/multi-repo-foam-git-sync
Over the last few days, I've been working out how to get FOAM to automatically sync my notes to their respective Git repositories when I save them in the editor. Here are my findings.
Why?
I keep notes on different areas of my life siloed from each other. This allows me to completely prevent commercially sensitive stuff from my work life leaking onto personal devices and prevents me from accidentally publishing something personal (e.g. my shopping list for this weekend) to my public digital garden. Using FOAM in multi-root mode I can then transparently load all of these different sets of notes into the same workspace and connect relevant things together (for example, I could link to a public note I made about MySQL in a private work-related note I made to myself about debugging a client issue).