[Mobile] Automatic sync with GitHub on iOS (for free) via a-shell

Thank you for the amazing post ! The only thing that was preventing me going full for obsidian is its mobile sync - default option of icloud made it so sluggish. I tried syncing with Obsidian Git plugin itself on iphone - which worked without requiring any other app - but the experience was very clunky - The Obsidian-Git plugin throws lot of messages and what not.

Your solution is perfect as far as reliability of sync is concerned.

Only thing now left is - shortcuts and automations to make things seamless.

I am able to execute the shortcuts using Commander and Shortcut Launcher plugins as discussed in this post - but when shortcut is launched from within the obsidian - the a-shell app does not execute the commands and shortcut moves to the next step. The expected behaviour is to execute the whole command on a-shell and then run the next step in shortcut which is to launch the Obsidian. Even better solution would be to execute the a-shell commands in the background itself when the shortcut is moved to next step for launch of Obsidian

I partially solved this problem by putting up a waiting period of 10 sec between the shell execution of command and next step of launching back of Obsidian app.

Have you also experienced the same or am I missing something here?

Again Thanks a ton for your post :slight_smile:

Seems like I ran into same issue -

I am facing the same message when I ma trying to run pull shortcuts - lg2 merge exit code incorrect · Issue #667 · holzschu/a-shell · GitHub

And similar error as in the screenshot above when trying to run push shortcut

And nothing seems to work now.

Finally Resolved the conflicts using the Working Copy app and then added workspace-mobile.json file to .gitignore file. It worked now.

2 Likes

I was having some issues with the lg2 pull having conflicts. I but I found that replacing that line with lg2 stash lg2 pull lg2 stash apply resolved it. Just wanted to let people know.

2 Likes

thanks for this information

I keep getting this error :slightly_frowning_face: . Anything I can do to remediate it?

[.ssh]$ lg2 config user.identityFile "~/Documen
ts/.ssh/id_ed25519"
Unable to open repository '%s' '.' [-3] - could
 not find repository from '.'
[.ssh]$ ls
id_ed25519      known_hosts
id_ed25519.pub

You need to call lg2 config from inside a folder that is a git repository, as opposed to inside the .ssh directory.