Git does not track contents of a symlinked directory

Found this out while trying to figure out how to keep an obsidian vault synced using iCloud, but also use the note contents as the source for my blog.