Comprehensive Obsidian & Git Sync Workflow 🔄️ | Your Mind Under Version Control
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
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
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!
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!
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.
❤️ glad you found it useful!
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.
Excellent advice!
Thank you for these wonderful explorations!
Glad you like them! :)
Top quality content as usual, learnt a thing or two as well. Always good to see parts of your workflow Bryan. Cheers
Awesome! I'm glad you enjoyed it! :)
by chance, is this academic Chatter jon? ;D
@@BryanJenks Very much so, I really enjoy your content and communication style. And yes! :)
Double awesome! Really glad to have you here :)
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!
Glad it helped!
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!
I'm so glad you think so! :D
@@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!
@@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!!
@@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 :)
Thank you for this video!
You are so welcome!
Love it 😊
I'm glad!
🐄
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.
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/
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.
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
Nice video! Btw, do you commit the .obsidian/workspace file too? Are there any advantages to do it (or drawbacks to ignoring it)?
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
Thank you thank you ..😁😁
I was waiting for this ...
(Will ask doubt after watching the video!!😅)
Your wait is over!
what do you do after having git hub installed on windows
i couldn't relate to the coding thing after that
@@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
@@BryanJenks couldn't understand a thing beside making a new repository.
not being a developer sucks ! 😒😒
@@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 🤷🏻♂️️
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
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
hi bryan, ive been looking for a way to setup a sync function across devices on a home NAS, do you have a suggestion?
rsync might interest you :)
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?
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 :)
@@BryanJenks ok, thank you. Figured.
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?
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.
@@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?
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!
the cloud services can cause issues, i use git as a backup to the obsidian sync service now
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
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 :)
Hey, just a question if anyone can answer,
Will it be end to end encrypted if I use GitHub ?
it should be, it should be either SSH or HTTPS to send the traffic and both are secure
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?
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
@@BryanJenks thanks
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)
yup yup
How do I access my repository on another computer?
usual way, pulling the repo down with git clone
12:40 How do we do this part on windows?
powershell and task scheduler is how i did it on my work-windows machine
Is there anyway I can pay for the detailed instructions on how to Sync Obsidian with Github across multiple PC's ?
I do offer consulting on my website
🐄
🐄
I'm on linux. Will this work for me?
yup! linux and mac work best with this, linux is the easiest, windows is difficult
@@BryanJenks I'm on windows :( Please point me to the changes I need to make?
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.
yeah, you're correct there
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 👍
Better question to ask me on my faq repo
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.
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 🤔️
Are you worried about syncing all your notes to Github without encrypting them?
I'm sure you have some personal information in there.
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 🤷🏻♂️️
🐄
🐄