LongCut logo

Free Obsidian Sync using Git on All Your Devices in JUST 5 MINUTES

By ViscousPotential

Summary

Topics Covered

  • Git Is Free Cloud Storage for Notes
  • No System Is Fully Immune to Attack
  • A Tool Built From Personal Necessity
  • Automated Obsidian Sync Across All Devices

Full Transcript

Hey, I want to show you how to secure city block across all your devices automatically and for free using git.

Before we dive right in, let me give some context on what Getty even is. Git

is a name for a piece of software mainly used by developers to track changes and manage conflicts in code business.

Doesn't really matter what that means though. It should described in terms of

though. It should described in terms of cloud storage providers like Dropbox or Google Drive. We have get provider which

Google Drive. We have get provider which should be the equivalent of a cloud storage provider here and hosts your server. It also holds your repositories

server. It also holds your repositories which are just like folders in your cloud storage and are just containers for some files.

And then you have get clients which are just applications interacting with your server. This would be like the Dropbox

server. This would be like the Dropbox or Google Drive app on your phone.

Some examples of git providers you could use include GitHub and GitLab. And so to give you an idea, GitHub is currently providing 1 GB for private repositories and unlimited

storage for public repositories, while GitLab is providing a blanket 5 GB for public and private repositories.

Going forward, we'll be using GitHub as our get provider, but the instructions are pretty agnostic, so feel free to use any other provider or even host your own server for a super private setup.

Now, there's a little pre-work to do, but after that, the rest of the video will be broken up into parts, showing you how to set up automated GitSync on Windows, Linux, and Mac OS, followed by Android, and then iOS. But make sure to

stick around to the end for a little giveaway. Anyways, let's go. So, first

giveaway. Anyways, let's go. So, first

things first, you need to sign up for a GitHub account. To do that, go to

GitHub account. To do that, go to github.com/signup.

github.com/signup.

Once you're signed up, and you're logged in, need to create a new repository to hold our files. To do that, just hit new on the homepage, and that will take you to this page. There's only a few things

you need to do here. First would be to fill out a descriptive repository name.

Then I'm going to make this repository private so that the contents aren't accessible to the public. While this is relatively secure, keep in mind that no system is immune to a determined attack.

Lastly, I'll hit add a readme file, which will make sure there's some initial contents of the repository and just makes things easier going forward.

Finally, scroll down to the bottom and hit create repository and you're good to go.

Now, we can get straight into the setup on Windows.

First thing to do here is to install Git. So, go to this URL,

Git. So, go to this URL, hit the download link right there. And

once the installer downloads, open it up, give it admin privileges, and then we can tap through most of the setup because there aren't any promotional offers and the defaults are good enough

for us.

So, just going to hit next until we get to the end. And then it's going to install.

And then after this, we're not going to open the application for now, but we'll come back to it.

So, hit finish.

All right. So, the next thing to do is to install GitHub Desktop. And to do that, go to this URL, hit the download button, and then again, once it's downloaded,

open the installer.

and it'll ask you to or with GitHub. So,

we're going to do that quickly.

I'm just going to hit continue and then give it access.

And then it's going to ask for some author details, but the default should be fine for you.

And from here, we're going to close GitHub desktop and the browser and open up Git Bash. This is the application we just installed. And we're going to run a

just installed. And we're going to run a few commands in here to get all set up for us using SSH.

The first command is to generate our SSH keys. And I'm not going to use

keys. And I'm not going to use passphrase here.

And then we're going to make sure our SSH agent is running. This should just be copy and pasted for the most part.

All right. Now, we're going to make sure our system is able to see our SSH keys and can use them.

And then finally, we're going to copy the public key that we just made to our clipboard.

Then go to this URL so that we can upload a public key to GitHub.

So click new SSH key here, give it a title, and then copy the key that's in your clipboard down here.

After that, hit add.

and author set up.

All right, almost done now. Just need to clone the repository.

So to do that let's open GitHub desktop again and then from there go to file clone hit URL.

Just copy in the URL of the repository that you made earlier and then hit clone.

Once the repository is clone we can open it in Obsidian. So let's do that.

So find that folder and then I'm going to open it in Obsidian.

At this point, feel free to load up your repository with initial contents. I'm

just going to make some changes though.

All right. So now you have your repository locally. We need to set up

repository locally. We need to set up the automated sync aspect. To do that, go to community buttons.

right here and then hit browse.

Type get up here and install the plugin.

Once it's installed, enable it and hit options. All right, there's a few

options. All right, there's a few settings to set up in here. First one is interval right there.

Then you probably also want sync once you finish file edits.

So check this and scroll down a little.

And I like to use a custom commit message. So I'm going to enter that

message. So I'm going to enter that here.

Then scroll down a little more. And I'm

going to take pull on startup just so I have the latest changes whenever I open Obsidian.

Last thing I'm going to show you is how to trigger a manual sync. So to do that, open the command pallet, type in git view, and open up the source control view. From here, just hit this

control view. From here, just hit this up arrow, and everything will be synced automatically for you.

You're now set up to have autosync for your Obsidian Bolt on Windows.

And that's that.

All right, let's get right into the Linux setup. First things first is to

Linux setup. First things first is to install Git. So to do that, open up your

install Git. So to do that, open up your terminal.

I'm going to run a package update quickly using this command and then we can install Git just using your package manager. Once that's done, we can get

manager. Once that's done, we can get GitHub desktop on Linux. So to do that, go to this URL, scroll down to the instructions, and

just follow them to get GitHub Desktop installed on your disc.

All right, once that's done, we want to open it up and it'll ask you to author with GitHub, which we're going to do. Just hit

continue and give it access.

And then once we're here, it'll ask you about some author details, but the default should just be fine.

Once that's done, we can close GitHub desktop for now.

The next thing we need to do is set up SSH O. So to do that, open up your

SSH O. So to do that, open up your terminal again and then run this command to generate keys. I'm not going to use a passphrase here.

And then run these commands to make sure your system can use these keys.

And then we want to navigate to this URL where we can upload the keys. So press

new SSH key there. Copy in your key down there and then give it a title. And then

you can hit add.

All right. Once that's done, we can open up GitHub Desktop again.

And from here, we're going to clone our repository. So go to file clone,

repository. So go to file clone, go to URL, and then copy in the URL of the repository that we made earlier.

All right. Once our repository is clone, we want to open it in Obsidian. So,

let's do that.

Find your folder, make it open.

And once you have it open, you can take this opportunity to fill the vault with some initial contents. I'm just going to make some changes over now.

All right. And I'll go to community plugins so that we can set up the automated aspect.

And then hit browse.

Type in get up there and tap get.

Once you're here, install it and enable it and then hit options.

So once you're here, we're going to set up a few settings. The first thing is sync interval and then we're going to turn on sync on file edits.

After that, scroll down and I want to use a custom commit message. So I'm going to fill that out

message. So I'm going to fill that out here.

After that, scroll down a little more and I'm going to turn on pull on startup, which will just make sure your board is up to date when you first open Obsidian.

I'm going to show you one last thing here, which is just how to sync manually. To do that, open your command

manually. To do that, open your command pallet, type in git view, and open the source control view.

in here. If you just hit the up arrow, it will automatically sync all your changes. And that's that. You have

changes. And that's that. You have

automated sync set up on Linux.

All right, straight to Mac OS. All

right, let's get into the Mac OS setup.

First things first, as usual, is to install Git. So to do that, we're going

install Git. So to do that, we're going to open up our terminal and install Git using this command.

Once it's installed, we're going to install GitHub Desktop. So go to this URL and hit the download button. Once

it's downloaded, launch it and it will ask you to or off. So or off with GitHub.

I'm just going to hit continue and then it will ask you for some other details but the default should be fine. Set up

through.

We can close GitHub desktop for now so that we can set up the SSH keys. So to

do that, open up the terminal again. We

run these commands.

The first one will generate the keys.

I'm not going to use a passphrase here.

And then the next few will make sure your system can see these keys and use them.

All right, once that's done, we're going to copy the public key to our clipboard and then go to this URL here. We're going to press new SSH key

here. We're going to press new SSH key and then copy that key down here. After

that, give it a name and then press add SSH key at the bottom. And now you're set up for OR. So open GitHub desktop

and then go to file clone and hit URL right here. After that, copy in the URL

right here. After that, copy in the URL of the repository that you made earlier and then press clone. Once your

repository is cloned, we can open it in Obsidian. So find your folder and hit

Obsidian. So find your folder and hit open.

Once you've got your repository open, you can take this opportunity to put some initial contents in, but I'm just going to make some changes for now.

After that, go to your community plugins and hit browse and then type in get and type get right here. Then hit install and enable and

here. Then hit install and enable and then hit options to get to this page so that we can set up automated sync. So

first thing is to set up the sync interval and then you want to set up sync on file edits.

After that, scroll down and I'm going to set up a custom sync message.

Then scroll down a little more and turn on put on startup just so your vault is fresh when you first open Obsidian.

Finally, I'm going to show you how to do a manual sync. So to do that, open your command pallet, type in git view, and then open the source control view. From there, if you press the button with the up arrow,

everything will be synced automatically for you. And that's that. Now, let's get

for you. And that's that. Now, let's get straight into mobile. Before getting

stuck in, I want to give a quick disclaimer about the setup on mobile. We

will be using an app called GitSync to achieve automated backing because it's just not possible to do with obsidian plugins alone. This app was developed by

plugins alone. This app was developed by me was a project built out of my own necessity that I'm happy to say people are finding useful for themselves. While

the app does have paid features, this tutorial only covers and requires the free stuff. But if you do need to manage

free stuff. But if you do need to manage your sync more than one repo once, the app has a onetime premium purchase to unlock unlimited repo access and some other bits specific to iOS that I won't go into.

At the end of this video, I'm going to tell you how to be in for a chance to win free access to Premium Forever. So,

stick around.

All right, let's get going on Android.

So, first things first is to install GitSync from the Play Store.

Once you've got that done, open up the app and then we can tap through most of the guided setup.

I'm going to hit let's go and then give the app notification permissions. From

there, we'll give it storage access and then we'll get to here where you can take a look at the wiki if you like.

Next, let's authenticate with GitHub.

So, just tap through there to or and then I'm going to hit continue. Now, you

might be prompted for all the details and if so, just fill them out here.

So, I just need to fill out my email, which I'll do, and then head back and we'll be prompted to clone. So, I'm

going to select my repository from the list and then select a folder.

So, I'm going to create a new folder inside documents and then select it and give the app access.

And now you're all done.

From here, we can set up automated sync.

And on Android, I recommend app based sync. So, we're going to turn it on and

sync. So, we're going to turn it on and then give it accessibility permissions.

This lets get sync see the name of the app that's in the foreground at the moment. So, what we're going to do is

moment. So, what we're going to do is select Obsidian and then we can turn on sync on app opened and sync on app closed like that.

And then you have autosync set up. From

here, you can open the vault and then feel free to take this opportunity to fill your vault with initial contents.

I'm just going to make some changes here for now.

Then finally, if you're cloning a repo that you've already set up on desktop, you're going to want to go to your community buttons and then scroll to the bottom of your Git settings and disable on this device. And then you'll be all

set up for automated sync on Android.

One last thing I'm going to show you is how to do a manual sync, which is just mining sync changes in the app at any time. And that's it. Let's do iOS. Last

time. And that's it. Let's do iOS. Last

but not least, let's set up iOS. So,

first things first, install get sync.

And then we're going to open obsidian for some initial setup.

Now, let's create a vault. So, just give it a name and create the vault. After

that's done, just create a file inside the vault so that we can recognize it later. Right now that's done, we can go

later. Right now that's done, we can go back to get sync.

Okay, now we just need to go through the setup. So let's hit let's go and then

setup. So let's hit let's go and then give the app notification permissions.

At this point, you can check out the wiki, but we're going to skip that for now. And we're going to authenticate

now. And we're going to authenticate with GitHub. So hit off and then hit

with GitHub. So hit off and then hit continue.

If you're prompted for some author details, make sure to fill those in.

Now let's clone our repository. So

select it from the list and then select a folder. So I'm going to select the

a folder. So I'm going to select the folder of the Obsidian B that we made earlier. You can identify it by the note

earlier. You can identify it by the note inside.

Then hit overrite and your repository will be burned.

From here we can open up Obsidian and set up any initial repository contents.

I'm just going to make some changes here for now. On top of that, if this is a

for now. On top of that, if this is a vault that you've already set up on desktop, you're going to want to go to the get plug-in settings and disable on this device. So, scroll to the very

this device. So, scroll to the very bottom of the settings and enable disable on this device.

Lastly, I'm going to show you how to set up a manual sync and an automated sync in get sync. So, to do a manual sync, hit sync changes in the app.

And for automated sync in iOS, there's the scheduled sync settings. So, you can enable automated sync whenever iOS allows.

And that's that. You should be set up for automated sync on iOS for Obsidian using Git. By this point, you should be

using Git. By this point, you should be set up with automated sync for Obsidian across all your devices using Git. I

want to say thanks for watching all the way to the end. And if you found this guide useful at all, please do leave a like and hit subscribe. Have plenty more fun stuff that isn't just super long tutorials planned for the future.

And just before I talk about the giveaway, I want to say that as a solo developer, I really appreciate all the support the community has already shown for kids over the last few months. I

only hope I can keep making the experience better for you all. Now, for

the giveaway, it's very simple. Just

join the Discord using the link in the description and leave a message in the channel telling me what you would use Multi Reaper Management for. At the end of the month, I'll pick 10 people and reach out to give you the access. Now,

have a great day and I'll see you in the next one.

Loading...

Loading video analysis...