Obsidian - Sync Vaults Between PCs with Github (Patreon)
Content
In this video we look at how you can keep your Vault synced between multiple PCs. I provide an overview of commonly used methods and then a detailed look into how to use Github to sync your vaults to. This can be used as a free alternative to Obsidian Sync.
Tutorial
This tutorial assumes you already have an Obsidian Vault that you would like to sync to another pc.
From the Original Source PC
It is recommended that you close down Obsidian when you are done making changes and wish to move to a different PC.
1. Create https://github.com/ account
2. Install Github Desktop
3. From within Github Desktop: File > Add Local Repository > Select Vault Path
4. An error will display saying it's not a Git Repository. We use this method to ensure that Github does not create a new folder within the existing Vault. Select the 'Create a repository' option from within the error message.
5. Leave the name the same as the Vault.
6. Enter a Description if you want.
7. Tick 'Initialize this repository with a README'. This will create a landing page from your Github repo which can be useful if you are sharing the vault with others, update it with instructions or callouts for example.
8. Click 'Create Repository'.
9. Wait for the initial sync to complete.
10. Click 'Publish Repository'
11. Leave the Name as it is and enter a Description.
12. You can tick 'Keep this code private' if you have an active sub with Github. Alternatively the repo will be Public accessible.
13. Click 'Publish Repository'.
You now have a copy of your Vault on Github!
From the Secondary PC
1. Install Github Desktop
2. From within Github Desktop: File > Clone Repository > Github.com tab > Select Repository from list (might need ot click the refresh icon). Select a local folder path where you want the Obsidian Vault installed. Click Clone.
3. Wait for the cloning to complete.
4. Open Obsidian > Open Another Vault > Open Folder As Fault > Select the folder that you cloned the Vault into.
5. If you get errors about trust, select Trust author and enable plugins. This will enable the same plugins and settings that you have on your initial PC.
You now have a copy of your Vault on your second PC!
Sync Changes Between PCs
It is recommended that you close down Obsidian when you are done making changes and wish to move to a different PC.
You can now use Obsidian on either PC.
1. Open Github Desktop > Fetch Origin > Pull any changes.
1. Open Obsidian and work on your Vault.
2. Once you are done, close Obsidian.
3. From Github Desktop > Changes Tab > Down the bottom left, enter a Commit Name and Commit Description (optional).
4. Click Commit to Main
5. Click Push Origin.
Repeat this process on either PC as required. Just take care to ensure Obsidian is closed on the PC that you are not working on. It is possible to leave it open on both but it's known to cause conflicts and that can be challenging to resolve if you are not comfortable with Github.
Files
Previews only