Include a folder in Obsidian Vault in a GitHub repository sync?

Things I have tried

Current state: Obsidian Vault synched across multiple devices in my Documents folder. Separate GitHub > Class Repository folder that has a folder of markdown notes. Currently no connection between Class Notes in GitHub folder and my Obsidian Vault.

What I’m trying to do

I would like to have class notes available in both my GitHub repository and my Obsidian Vault. I am not sure which direction to go is best, but my inclination is to have my notes live in Obsidian so that they are synched with the rest of the vault.

  • Don’t want 2 vaults – would like to connect ideas, be all in one place, no friction of switching.
  • Don’t want to mess with nested vaults… this seems like a bad time until it’s fully supported…

Is there a way to (not sure of correct technical term) synch to Obsidian Vault by specifying a path to a folder outside the vault, while it still treats it as part of the vault?

Or other options? Any suggestions or best practices for this are welcome!

1 Like

How r u syncing ur current obsidian vault? If also using github, there might be another steps.

My suggestion to clone ur class notes github to its own folder inside your main vault. But u would have to manually pull push from github using either command line or atom text editor or github desktop.

Obsidian by default indexes all files in the main vault and subfolders

E.g.
[YourVault]/[YourClassNotes]

1 Like

Thanks for the suggestion! I will look at how to do that.

I’m currently synching Obsidian with Obsidian Sync subscription.

I use GitHub Desktop to push pull updates for my class repository —
The structure is:
Class Resources fork folder / my class notes folder

Any update on this? I am now in a similar situation, using Obsidian Sync for 3 macs, iOS and iPad os and need to corral and add version control to a single set of stuff in my Obsidian vault. I am willing to put it all into its own folder if I can get this to work.

As suggested, the simplest way would be to setup a folder in your vault as a git repo. I had a question about whether that could cause problems and got no response; you might find some of the links on it useful.

The developer of iOS git app Working Copy is aware of Obsidian; I’ve been meaning to ask him my question but haven’t yet.

@theheatherlwalker @OogieM Looks like it’s safe to use Obsidian Sync with vault subfolders that are git repositories. Sync doesn’t sync hidden files, so it won’t corrupt your .git file.

Learned by chance in the Obsidian Discord:

Thanks for the update. I’m off to try to move the stuff I want VCS on into its own folder