obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

[Feature]: git-lfs support on mobile version

Open antailyaqwer opened this issue 2 years ago • 15 comments
trafficstars

Thanks for your great library! I can see that on pc your plugin supports git-lfs plugin to manage large files.

But isomorphic-git doesn't support this plugin out of the box (issue).

Is there an opportunity to support this feature with some sort of workaround? I'm not a js-dev, so I can't see what kind a difficulties you may face. But for example, there are some android applications and libraries made on top of isomorphic-git itself, which somehow handle this git extension to make everything works.

I hope there is a way to add this functionality to your plugin.

antailyaqwer avatar Sep 24 '23 09:09 antailyaqwer

Are you on android or iOS?

I'm actually using termux on Android and have a foldere with a bunch of scripts to make sure, that git LFS works.

I had to use this, as isomorphic-git indeed doesn't support Git LFS.

If you want, I can share these scripts.

The nasty part was, that even on termux, the git-lfs hooks don't work because of some weird reeson which I don't understand. Instead, I had to manually invoke the git-lfs hooks on my mobile scripts 😅

GollyTicker avatar Oct 16 '23 20:10 GollyTicker

Hi, @GollyTicker, could you please share your scripts? I am trying to setup Obsidian on Android and I, too, use Termux. I am running into headaches with my notes repository due to the fact that I have git-lfs enabled on the repository.

Thanks

i8degrees avatar Oct 29 '23 05:10 i8degrees

Sorry, @GollyTicker, I must have missed your reply! Yeah, your scripts would be quite useful, thank you! Though I use obsidian both on android and ios devices, so, adapting git-lfs on ios still required :)

antailyaqwer avatar Oct 29 '23 08:10 antailyaqwer

cool!

I'll need to adapt my script for public usage and add docs. I'll do that around the end of this week ideally

GollyTicker avatar Oct 29 '23 17:10 GollyTicker

@i8degrees @antailyaqwer

Here you go!

https://github.com/GollyTicker/git-sync-template

I hope the documentation and comment are sufficient to get it working on your side.

GollyTicker avatar Oct 29 '23 22:10 GollyTicker

Thank you @GollyTicker for the quick response! I will let you know how it goes here when I get to integrating it into my system.

i8degrees avatar Oct 30 '23 02:10 i8degrees

@GollyTicker Many thanks for your repository!

antailyaqwer avatar Oct 30 '23 03:10 antailyaqwer

@i8degrees @antailyaqwer

So, is it working for you?

GollyTicker avatar Nov 02 '23 16:11 GollyTicker

@GollyTicker Sorry about that, now I don't have time to check with your script :( I will respond as soon as will have time for it, but still many thanks for your repository!

antailyaqwer avatar Nov 03 '23 09:11 antailyaqwer

@antailyaqwer ping 😇

GollyTicker avatar Mar 15 '24 05:03 GollyTicker