Comprehensive Obsidian & Git Sync Workflow 🔄️ | Your Mind Under Version Control

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • ▬▬▬▬▬▬▬▬▬▬ ► CHECK THESE OUT ◀︎▬▬▬▬▬▬▬▬▬▬
    📧️ NEWSLETTER: bryanjenkstech.ck.page/d4ec07...
    💬 DISCORD: / discord
    🗣️ SOCIALS: streamerlinks.com/tallguyjenks
    ▬▬▬▬▬▬▬▬▬▬ ► SUPPORT THE CHANNEL ◀︎▬▬▬▬▬▬▬▬▬▬
    👨🏻‍💻️ GITHUB SPONSOR: github.com/sponsors/tallguyjenks
    🙏🏻️ AMAZON WISHLIST: www.amazon.com/hz/wishlist/ls...
    😇 PATREON: www.patreon.com/bryanjenks?fa...
    🙌🏻️ CZcams MEMBERSHIP: / bryanjenkstech
    ☕ BUY ME A COFFEE: www.buymeacoffee.com/tallguyj...
    💵 PAYPAL: www.paypal.me/tallguyjenks
    📊️ FREE STOCKS: join.robinhood.com/bryanj67
    ▬▬▬▬▬▬▬▬▬▬ ► My Newsletter ◀︎▬▬▬▬▬▬▬▬▬▬
    📧️ NEWSLETTER: bryanjenkstech.ck.page/d4ec07...
    ▬▬▬▬▬▬▬▬▬▬ ► My Gear ◀︎▬▬▬▬▬▬▬▬▬▬
    ⚙️GEAR: kit.co/tallguyjenks/my-gear
    ▬▬▬▬▬▬▬▬▬▬ ► Questions? ◀︎▬▬▬▬▬▬▬▬▬▬
    ❓️FAQ: github.com/BryanJenksCommunit...
    ▬▬▬▬▬▬▬▬▬▬ ► Social ◀︎▬▬▬▬▬▬▬▬▬▬
    💬 DISCORD: / discord
    🐦 TWITTER: / tallguyjenks
    📺 TWITCH: / tallguyjenks
    📜️ MEDIUM: / tallguyjenks
    💼️ LINKEDIN: / bryanjenks
    🖥️ GITHUB: github.com/tallguyjenks
    🌎 WEBSITE: www.bryanjenks.dev/
    ▬▬▬▬▬▬▬▬▬▬ ► The Rest ◀︎▬▬▬▬▬▬▬▬▬▬
    Thanks for watching and if you liked this video please leave a 👍🏻
    Subscribe to my channel and click the 🔔 icon for notifications when I post a new video
    If you read this far put a 🐄 in the comments!
    ▬▬▬▬▬▬▬▬▬▬ ► TAGS ◀︎▬▬▬▬▬▬▬▬▬▬
    #obsidian #zettelkasten #bryanjenks
    Want to get your hands on my Obsidian templates, Custom CSS, and Mermaid Diagram code? 👉🏻️bryanjenkstech.ck.page/d4ec07...
    00:00 Intro
    00:11 Premise
    01:05 Why did i do this?
    04:12 / how-i-put-my-mind-unde...
    04:12 gist.github.com/tallguyjenks/...
    04:27 Reviewing the script line by line
    22:04 The Obsidian Plugin for Git syncing
    24:10 Closing
  • Věda a technologie

Komentáře • 81

  • @BryanJenks
    @BryanJenks  Před 3 lety +6

    Want to get your hands on my Obsidian templates, Custom CSS, and Mermaid Diagram code? 👉🏻️bryanjenkstech.ck.page/d4ec0713d5
    00:00 Intro
    00:11 Premise
    01:05 Why did i do this?
    04:12 medium.com/analytics-vidhya/how-i-put-my-mind-under-version-control-24caea37b8a5
    04:12 gist.github.com/tallguyjenks/ca3339b8b5353159f631836268e3f791
    04:27 Reviewing the script line by line
    22:04 The Obsidian Plugin for Git syncing
    24:10 Closing

  • @nickwarters
    @nickwarters Před 3 lety +18

    Dude, I love how you explain stuff. Honestly some people go too far, some people not enough detail ... you sit right there in the middle. The right amount of detail, and you definitely keep everyone engaged!

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      This made my day! im glad the information was conveyed successfully, i tend to ramble a lot because of my ADHD so to know i hit a middle ground is very welcome news to me :) thank you!

  • @danielcano7410
    @danielcano7410 Před 2 lety

    I had already saw your video a long time ago. Only now I'm starting to appreciate all you did. Your obsidian template has done wonders for me, I never stop improving, all thanks to you.

  • @Digital_Notions
    @Digital_Notions Před 3 lety +9

    If you're worried about security regarding the credential storage, there are other options. I would recommend creating a separate SSH token for your Git provider (Github / GitLab) for that specific repository only. That way you can use local get options (such as git config --local xxx) to store the credentials for just that repo. This doesn't solve all security concerns, but it makes it so that the stored key will only work in that repo and not your whole git account.

  • @alejandromadail
    @alejandromadail Před 3 lety +1

    Thank you for these wonderful explorations!

  • @Jonathan-dm3pt
    @Jonathan-dm3pt Před 3 lety +1

    Top quality content as usual, learnt a thing or two as well. Always good to see parts of your workflow Bryan. Cheers

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      Awesome! I'm glad you enjoyed it! :)
      by chance, is this academic Chatter jon? ;D

    • @Jonathan-dm3pt
      @Jonathan-dm3pt Před 3 lety

      @@BryanJenks Very much so, I really enjoy your content and communication style. And yes! :)

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      Double awesome! Really glad to have you here :)

  • @diszydreams
    @diszydreams Před 7 měsíci

    Thanks! I am having some issues with the Git plugin, and this video gave me the knowledge I needed to troubleshoot it and make it working!

  • @sechvnnull1524
    @sechvnnull1524 Před 3 lety +1

    Wow! This is awesome. I'm in Cybersecurity and have been searching for the right workflow. You do an amazing job of speaking and explaining this. Thank you!

    • @BryanJenks
      @BryanJenks  Před 3 lety

      I'm so glad you think so! :D

    • @sechvnnull1524
      @sechvnnull1524 Před 3 lety

      @@BryanJenks Yes your awesome and I follow so many different tutorials trying to learn my trade and I can tell you you have a gift for teaching!

    • @sechvnnull1524
      @sechvnnull1524 Před 3 lety

      @@BryanJenks If i had the dough I would literally pay you to tutor me on code stuff and general workflow. I'm in cybersecurity but if you want to be really good and creative at it especially pentesting you really need to be good at programming which I'm currently working on. Sorry, I just think you do an amazing job and it's refreshing and inspiring!!

    • @BryanJenks
      @BryanJenks  Před 3 lety

      @@sechvnnull1524 thank you so much! I try to break things down with the mindset that someone has absolutely no exposure to what I'm talking about it when i first broach the subject :)

  • @user-by3wf7tp9c
    @user-by3wf7tp9c Před 3 lety

    Thank you for this video!

  • @LeonvanBokhorst
    @LeonvanBokhorst Před 3 lety

    Love it 😊

  • @mykelbrinkerhoff9533
    @mykelbrinkerhoff9533 Před 3 lety +1

    🐄
    I have to say I really enjoy your videos! I am curious about what theme you are using in iTerm2? Those colors are so soothing and seem make working in the terminal a joyful experience.

    • @BryanJenks
      @BryanJenks  Před 3 lety

      i use gruvbox hard dark everywhere for everything i can possibly get it into. and if whatever application i use doesn't have it i make it 🤣️
      iterm2colorschemes.com/

  • @scottcoleman5438
    @scottcoleman5438 Před 2 lety

    Hello. Love your channel. Been watching for a while and have learned a lot from you. Especially on the Obsidian front. One question: How do you create the alias for your cloud file path? My obsidian is hosted in cloud as well. Thank you.

    • @BryanJenks
      @BryanJenks  Před rokem

      stuff like that is usually in the .bashrc file or loaded from there so i can type the short hand codes and be taken there

  • @Flackon
    @Flackon Před 3 lety

    Nice video! Btw, do you commit the .obsidian/workspace file too? Are there any advantages to do it (or drawbacks to ignoring it)?

    • @BryanJenks
      @BryanJenks  Před 3 lety

      i do commit that. benefit is that when i pull my vault down on another machine, all the hidden files i push to the repo make it as if I'm opening the vault exactly where i left off on my home machine. not recommended if multiple people are working the vault

  • @surendergrover4146
    @surendergrover4146 Před 3 lety +1

    Thank you thank you ..😁😁
    I was waiting for this ...
    (Will ask doubt after watching the video!!😅)

    • @BryanJenks
      @BryanJenks  Před 3 lety

      Your wait is over!

    • @surendergrover3696
      @surendergrover3696 Před 3 lety

      what do you do after having git hub installed on windows
      i couldn't relate to the coding thing after that

    • @BryanJenks
      @BryanJenks  Před 3 lety

      @@surendergrover3696 thats because im on mac, this would work on mac and Linux but you may find something similar by checking out this portion of my obsidian forum post, someone wrote a powershell script for it though i haven't looked at it: forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/17

    • @surendergrover3696
      @surendergrover3696 Před 3 lety

      @@BryanJenks couldn't understand a thing beside making a new repository.
      not being a developer sucks ! 😒😒

    • @BryanJenks
      @BryanJenks  Před 3 lety

      @@surendergrover3696 often times being a developer sucks lol always too much to learn. i don't have this workflow setup on windows. with your vault in a git repo, you could use github desktop to push changes so you don't even need to use the command line. but the auto-sync wont work with that 🤷🏻‍♂️️

  • @michaelns9887
    @michaelns9887 Před 3 lety +1

    Can it cause conflicts? E.g. if I edited a file on machine #1, but you didn't sync it to remote. Then you go to machine #2, do other changes, sync them. Then go back to #1, cronjob runs, and `git pull` has a merge conflict

    • @BryanJenks
      @BryanJenks  Před 3 lety

      yes, as a basic premise, if different changes to the same file occur on different machines then there will be a merge conflict that fails silently. this is why this is not the best approach for team usage. if a team was doing this, they're better off with the traditional git/sfotware approach, but as an individual being the only one editing it, it works beautifully

  • @warrior3d27
    @warrior3d27 Před 2 lety

    hi bryan, ive been looking for a way to setup a sync function across devices on a home NAS, do you have a suggestion?

  • @muffinberg7960
    @muffinberg7960 Před 3 lety

    what about the note attachments? I thought you could not upload big documents or media files to github. When you attach a media file to your obsidian note how does git behave? Do you store your attached media files on a separate directory?

    • @BryanJenks
      @BryanJenks  Před 3 lety

      the images i have added are not large by any means, i actually have no trouble at all with anything, and all my media is in the Media/ directory in my private vault :)

    • @muffinberg7960
      @muffinberg7960 Před 3 lety

      @@BryanJenks ok, thank you. Figured.

  • @vikingzeppelin
    @vikingzeppelin Před 2 lety

    Saw your video on iFrames, but I'm looking for a little more clarification on automation. I understand that syncing to git is useful for version control, but does this also mean Obsidian can be automated through the markdown files in git?
    Lets say my obsidian is empty, but has a vault name. I want to program a system (in python or something) that outputs a markdown file, in the same context as obsidians'. The system would reference databases of users, products, and links between them. Then automatically output to git whenever a change occurs in the database. This is so I can open obsidian with an already current vault. Am I assuming correctly that this can be done? Or do I have to wait for a more robust API for obsidian?

    • @BryanJenks
      @BryanJenks  Před 2 lety

      im not really understanding exactly what it is you're trying to do, but from what i could glean from your comment, thats all basically what this video talks about. That and the mobile editing obsidian vault video i posted. There's a mobile app out now too so there's that if you wanted mobile editing with their paid sync service.
      I use git to keep my vault synced so just like any other code repo, i can git pull changes when i switch to other computers and all my files and even the application state is exactly the same to the page i last had open.

    • @vikingzeppelin
      @vikingzeppelin Před 2 lety

      @@BryanJenks Sorry for the abstract thought process. I don't have specific knowledge with Git, Python, or Obsidian. I'm using alternatives, so just a prospective buyer right now, but I like what Obsidian can do. Your videos are great. Currently building out a studio for deep app development. The business I'm running is just a one-man-show, but I'm looking to automate as much as possible. I know how to code, but apps like Integromat are already suited for non-coding development. I just pay a premium for convenience until I can program my own automated system. So needless to say I've been on the hunt for the right app to build a command center. And Obsidian looks promising. Even though Obsidian won't be directly integrated through integromat, it will be automated through Git. And Git is integrated with Integromat. Brilliant. All I have to program is a markdown converter to automatically inject the relevent data to its respective vault. This will allow me to automatically sort and visualize large amounts of connected data, close to realtime. With very little code. Hopefully. Also, The command center won't necessarily be a two-way street. Which is fine. Obsidian is just the place where all data ends up, and keeps building up so as to be seen altogether in one place (via Git + s + plugins). Obsidian will help the command center to make decisions, but not act upon them. Other apps in the system will be doing the action processes. There aren't any database visualizers out there. But if Obsidian can do it, that makes it the first one right?

  • @daviddelgadovendrell
    @daviddelgadovendrell Před rokem

    Hello, Bryan.
    I have some questions:
    1. Which is the key difference of Github version control and the one provided by cloud repositories such as OneDrive or Sharepoint if we sync it there (even OneSync if you use Android).
    2. Is this Git Sync workflow compatible using as the source a Vault stored in a local folder synced into another Cloud repository (such as OneDrive or Gdrive...). Could we have some sync issues?
    Thanks for sharing!

    • @BryanJenks
      @BryanJenks  Před rokem

      the cloud services can cause issues, i use git as a backup to the obsidian sync service now

  • @alejandromadail
    @alejandromadail Před 3 lety +3

    I think your script could fail when you edit simultaneously in multiple machines before pushing. For what I see in 13:45. The git pull in the zk_sync script can lead to merge conflicts and prevent the rest of the script from being executed

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      true, and i believe i said something about that, how, for teams this is not the best tool because of those merge conflicts, but for a single individual, this would be perfect because only 1 person is editing. which is what i made this for. a team would likely use git in the traditional fashion either in the command line or with some GUI tool like gitkraken or GH desktop. but yes your point is valid :)

  • @RajSharma-ec7mn
    @RajSharma-ec7mn Před rokem +1

    Hey, just a question if anyone can answer,
    Will it be end to end encrypted if I use GitHub ?

    • @BryanJenks
      @BryanJenks  Před rokem

      it should be, it should be either SSH or HTTPS to send the traffic and both are secure

  • @ennioagc
    @ennioagc Před 2 lety

    How do you manage with the script in windows? You said that we have to creates the file in the .local/bin folder, but how and where we can do this in windows?

    • @BryanJenks
      @BryanJenks  Před 2 lety +1

      Most of it is interchangeable but will need modifications to be in a power shell script and that script placed in task scheduler to run on an interval. That’s how I set it up on my work machine

    • @ennioagc
      @ennioagc Před 2 lety

      @@BryanJenks thanks

  • @KotleKettle
    @KotleKettle Před 2 lety

    Git changed Master to Main, so be careful when initializing for the first time. Use Main instead of Master (if you're new and doing it for the first time)

  • @philippwimmer1590
    @philippwimmer1590 Před rokem

    How do I access my repository on another computer?

    • @BryanJenks
      @BryanJenks  Před rokem

      usual way, pulling the repo down with git clone

  • @KotleKettle
    @KotleKettle Před 2 lety

    12:40 How do we do this part on windows?

    • @BryanJenks
      @BryanJenks  Před rokem

      powershell and task scheduler is how i did it on my work-windows machine

  • @mpsmanger4713
    @mpsmanger4713 Před 2 lety

    Is there anyway I can pay for the detailed instructions on how to Sync Obsidian with Github across multiple PC's ?

    • @BryanJenks
      @BryanJenks  Před 2 lety

      I do offer consulting on my website

  • @journalisering
    @journalisering Před rokem

    🐄

  • @sumonsinha2174
    @sumonsinha2174 Před 3 lety +1

    I'm on linux. Will this work for me?

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      yup! linux and mac work best with this, linux is the easiest, windows is difficult

    • @amogh2101
      @amogh2101 Před 3 lety +4

      @@BryanJenks I'm on windows :( Please point me to the changes I need to make?

  • @daxu9605
    @daxu9605 Před 3 lety

    I don't think you need to touch .gitignore. The > creates the file automatically if it doesn't exist, and overwrites it if it does.

  • @spandankeshav
    @spandankeshav Před rokem

    Hi Bryan, if I want to access my vault from other machine, do I need to follow exactly same procedure as for the 1st machine? Thanks 👍

    • @BryanJenks
      @BryanJenks  Před rokem

      Better question to ask me on my faq repo

  • @ChanningWalton
    @ChanningWalton Před 3 lety

    Nice. instead of using cron, you could also use watchman - facebook.github.io/watchman/
    Have it watch your vault for changes and trigger your script from that, so you'll get every change committed. That might be too much of course, I'm looking to see of there is a setting to take a minimum time between invocations.

    • @BryanJenks
      @BryanJenks  Před 3 lety +1

      cool tool! MacOS has its own cron-like utility i just stuck with cron because its simple, and already included, but this may come in handy for some other ideas 🤔️

  • @FaradayAcademy
    @FaradayAcademy Před 3 lety +1

    Are you worried about syncing all your notes to Github without encrypting them?
    I'm sure you have some personal information in there.

    • @BryanJenks
      @BryanJenks  Před 3 lety

      hadnt really thought of that, but no, my daily journal isn't that sensitive, its personal, but i wouldn't ever put anything truly sensitive down in writing let alone load it to git hub lol if i was really worried i could modify the script to ignore the journal directory and just Rsync it to my cloud storage folder 🤷🏻‍♂️️

  • @jumino4565
    @jumino4565 Před 3 lety

    🐄